Vineet, If you have the "continue-after-fatal-error" feature enabled, the parser stops behaving normally after the first well-formedness error it encounters. Subsequent errors it reports may be misleading (assuming it doesn't end up in an infinite loop or worse). Aside from turning it on briefly to possibly help locate problems during development, I don't recommend using it. You should never have it enabled in production code.
Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Ian Lewis" <[EMAIL PROTECTED]> wrote on 05/28/2007 02:02:49 AM: > vineet, > > Unfortunately it's not possible to find all fatal errors in one > pass. Any parser that conforms to the W3C XML specification will not > continue after the first well-formedness error is found. This is > because you cannot create a XML parser that can reliably find all > the errors in the XML document. XML files can become wildly non- > conformant after the first error is encountered. > > It was decided early on in XML standarization that the standard > would not be cluttered with complicated ways for parsers to guess > how the document is supposed to be formed and thus try to glean > what's wrong with the document as a whole. > > Check out this page for a simple explanation: > http://www.w3schools.com/dom/dom_validate.asp > > Ian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]