J
jake
I am trying to ignore the <!DOCTYPE ...> element when I Read() an xml
file with my XmlReader. Setting "ProhibitDtd" to true makes Read()
generate an error. Catching the error does not help because it makes
further Read()s fail and return false. Setting "ProhibitDtd" to false
forces the XmlReader to fetch the DTD from an external website which
is highly undesirable in my application. Removing the <!DOCTYPE...>
element prior to creating the XmlReader is not an option either
because the application processes thousands of xml files across
network traffic at any given time and this will slow it down to an
unusable state.
Is there a way around this?
Thanks in advance for your help.
file with my XmlReader. Setting "ProhibitDtd" to true makes Read()
generate an error. Catching the error does not help because it makes
further Read()s fail and return false. Setting "ProhibitDtd" to false
forces the XmlReader to fetch the DTD from an external website which
is highly undesirable in my application. Removing the <!DOCTYPE...>
element prior to creating the XmlReader is not an option either
because the application processes thousands of xml files across
network traffic at any given time and this will slow it down to an
unusable state.
Is there a way around this?
Thanks in advance for your help.