Jean Georges PERRIN wrote:
I have made a small test in a test environment, and it looks like Xerces is
able to correct such xml errors. I was surprised. However, some features are
Assuming that the input documents are erroneous as you say,
I don't see how Xerces could parse them correctly. For
example, the following XML code:
<body>
<img src='me.gif'>
<p>Hello there</p>
</body>
can be parsed up to the end body tag. It's at that point
that the end tag it sees does not equal the currently open
tag, <img>. Since img did not end properly for XML (e.g.
<img ... />), the following paragraph would appear as a
child of the img tag. However, it will fail absolutely
due to a well-formedness constraint when it hits the end
body tag in the example.
If your documents can be parsed with Xerces I would be
surprised and it would mean there is a bug in Xerces.
--
Andy Clark * [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]