I have an xml template document that I need to load into an XmlDocument. eg,
myXMLDocument.Load(myXMLFile);
However, this is very slow since it loads into dtd. I tried both a "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"local copy of dtd. Both take more or less the same time. If I return to loading dtd by setting this converter to null (for example), I get errors such as "Reference to undeclared entity 'nbsp'"if the document contains this data.
I need to use XmlDocument, as I need to manipulate the DOM before issuing the document. How can I get around these problems?
source
share