Making XmlReaderSettings CheckCharacters work for xml string
问题 I have an xml string coming from Adobe PDF AcroForms, which apparently allows naming form fields starting with numeric characters. I'm trying to parse this string to an XDocument: XDocument xDocument = XDocument.Parse(xmlString); But whenever I encounter such a form field where the name starts with a numeric char, the xml parsing throws an XmlException: Name cannot begin with the 'number' character Other solutions I found were about using: XmlReaderSettings.CheckCharacters using (XmlReader