XPathDocument behavior with DOCTYPE declaration
Posted
by
gliderkite
on Stack Overflow
See other posts from Stack Overflow
or by gliderkite
Published on 2012-04-13T20:05:10Z
Indexed on
2012/04/14
11:29 UTC
Read the original article
Hit count: 194
I use XPathDocument to parse an XML file, but if there's a doctype declaration, when I initializes a new instance of the XPathDocument class passing the path of the file, that contains the XML data, to its constructor, my application tries to connect to internet (probably to verify the correctness of the XML data) and remains blocked for a long period of time. This does not occur if I delete the doctype declaration from the XML file. XmlDocument.Load method has the same behavior. How can I fix this problem?
Thanks.
© Stack Overflow or respective owner