There is legal content that can come after the end of the root element,
namely PIs and comments. So the parser must check until the end of the
entity's input.
--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
[EMAIL PROTECTED]
http://www.charmedquark.com
"Why put off until tomorrow what you can
put off until the day after tomorrow?"
----- Original Message -----
From: "Amato, Matt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 04, 2001 11:54 AM
Subject: RE: Bug in SAXParser?
> > I believe the XPath data model (which XSLT also uses) explicitly ignores
> > whitespace outside the root element, before or after.
>
> 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? What I mean is if I have a valid XML
> file and I have junk after the root element is finished, should it throw a
> "Comment expected error" as it does now, or should it just ignore the
junk?
> I currently have this problem and I'm trying to find the most efficient
way
> to make the parser stop at the end of the root element even if my buffer
> contains erroneous data afterwards.
>
> Matt
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]