Validation and no validation: DOCTYPE ?
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <[email protected]> |
BDY.TXT
(text/plain, 1.1 KB)
Hi. So far I have been parsing XML files with DOCTYPE declarations and a reference to a valid DTD. When I set the parser validation feature to false AND remove the DOCTYPE declaration from the file the parser event reporting seems to change, because suddenly my ContentHandler does produce a different ouput (basically the only element that arrives at my application is the document element). When I set the parser validation feature to false AND leave the DOCTYPE declaration but let it point to an invalid/non-existent DTD I get an error. Something about "an invalid DTD reference". This is kind of unexpected since I thought the DTD would be ignored when the parser is non-validating. Could anyone point me to an explanation. I seem to make the wrong assumptions about non-validating parsers? Stefan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ List: sax-devel, [email protected] See: http://www.saxproject.org/ https://lists.sourceforge.net/lists/listinfo/sax-devel