![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there I have a schema (xsd) that I can figure out to validate Xml docs against. The documents however, also contain a DOCTYPE declaration. I would like for my XmlReader to _ignore_ the DOCTYPE declaration. Currently, it throws. If I enabled the Dtd support (ProhibitDtd = false), it tries to retrieve the URL. I have given it an XmlSecureResolver without any URL, and then it throws... So, it seems I can: - have the validating XmLReader throw when it encounters an DOCTYPE or - have it try to fetch the URL of the DOCTYPE I just want it to ignore it... Any advice? |
#3
| |||
| |||
|
|
I have a schema (xsd) that I can figure out to validate Xml docs against. The documents however, also contain a DOCTYPE declaration. I would like for my XmlReader to _ignore_ the DOCTYPE declaration. Currently, it throws. If I enabled the Dtd support (ProhibitDtd = false), it tries to retrieve the URL. I have given it an XmlSecureResolver without any URL, and then it throws... |
#4
| |||
| |||
|
|
I just want it to ignore it... Any advice? Please try to use XmlReaderSettings with XmlResolver set to null and ProhibitDtd set to false, that should not load the DTD. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |