On Aug 7, 2:47*pm, "MC" <for.address.l...@www.ai.uga.edu.slash.mc>
wrote:
It sounds like the "bug" is your malformed xml. Fix your pseudo-xml.
But his request is reasonable. *Corrupted XML files do occur.
Indeed, and the data in them shouldn't be trusted.
The syntax of XML should make it possible to recover (partly) from minor corruption, e.g.,
change
<blither><blah>asdfasdf</blaaaaah><blah>qwertyuiop</blah></blither>
into
<blither><blah>qwertyuiop</blah></blither>
(omitting the malformed section)
Except there are any number of alternative ways of "recovering" from
the error, and no way of knowing which one is "correct".
XML was specifically designed to be error intolerant, partly to avoid
all the error recovery which has plagued browsers.
or even
<blither><blah>asdfasdf</blah><blah>qwertyuiop</blah></blither>
(correcting the incorrect terminator).
So who will invent a syntax-error-tolerant XML parser?
They must exist for text editors etc - but I wouldn't want to use one
for anything where the XML is being actually processed instead of just
displayed to a user.
Jon