C# LINQ TO XML - Remove “[]” characters from the DTD header http://stackoverflow.com/questions/12358061/c-sharp-linq-to-xml-remove-characters-from-the-dtd-header public static void FixDocumentType(this XmlDocument xml) { if (xml?.DocumentType == null…