Hi Mark,

If you don't want validity errors to be reported, you should turn
validation off. The parser never ignores the DOCTYPE. Even if you're not
validating, it will still read the DTD and add default attributes, and
perform entity substitution.

Have a look at:
http://xml.apache.org/xerces2-j/faq-write.html#faq-3

On Fri, 5 Sep 2003, Mark Lassau wrote:

> Michael Glavassevich wrote:
>
> Thanks Michael.
> Given that is the case, is there a setting in Xerces to ignore the
> doctype declaration?
>
> I'm trying to parse third-party xml files (JBoss config files - example
> was a stripped-down copy).
> If I remove the <!DOCTYPE server> tag, then DOMParser parses the whole
> file for me.

--------------------
Michael Glavassevich
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to