Does LINQ to XML ignore includes from a DTD?
问题 I'm using the MathML DTD for parsing MathML using System.Xml.Linq. While the ordinary MathML stuff gets recognized fine, the MMLEXTRA include in the DTD gets ignored and I get errors. Here's the code I'm using: if (!string.IsNullOrWhiteSpace(mathML)) { try { const string preamble = "<!DOCTYPE mml:math PUBLIC \"-//W3C//DTD MathML 2.0//EN\"\n" + "\"http://www.w3.org/Math/DTD/mathml2/mathml2.dtd\" [\n" + "<!ENTITY % MATHML.prefixed \"INCLUDE\">\n" + "<!ENTITY % MATHML.prefix \"mml\"> \n" + "]>";