Subj : XML
To : Jan Vermeulen
From : Micael Bulow
Date : Tue Jan 07 2003 07:17 am
mb> You don't loose anything, but the parser wont acceppt it.
JV> So it will not go to the next level; that is tantamount of
JV> loosing it this and possibly later weeks.
As I told you, you wont loose the data.
Anyway, if this becomes a problem (I dont see it) it's easy to get around with
some errorhandling.
JV> That was not my question. Let me rephrase it: if the document
JV> would containt two errors, would the parser exit when finding the
JV> first error or would it continue to the end of the document and
JV> prooduce a log of all errors found?
I've used the DOM and it exits on the first error, telling me that the stream
is not well-formed along with the first errorous row.
I haven't had the opportunity to try the SAX parser yet, so I dont know about
that one.
However, as said above, it wont be a problem. It can be worked around easely.