> In this case, I have another question, please keep in mind I'm
new
>to XML so if it's a stupid question, I apologize. Should the parser
ignore
>everything after the root element?
There's a specific definition of well-formed XML document -- see
http://www.w3.org/TR/REC-xml#sec-well-formed -- which the parser is
entitles ot insist upon. There are specific kinds of data that may follow
the root element; if the parser sees anything else, it's entitled to
complain. Officially, you can't expect correct parsing of anything that is
not a well-formed document.
This is not an uncommon question. It might be interesting if Xercs had a
(custom, nonportable) mode which said "I know the input stream may end in
non-XML noise; if the document was otherwise well-formed up to that point,
treat that as end-of-document rather than a well-formedness error."
Problem: Most of the folks who want to do this then want to hand the
remainder of the data stream to some other task, and I would expect that
Xerces couldn't push back enough data do make that work. And of course it
encourages "bad habits" which wouldn't work with other parsers.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]