W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

Re: Multipal Error In DOM Document

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Mon, 29 Jan 2001 18:06:37 -0500
To: www-dom@w3.org
Message-ID: <OFB03D9BE9.5D6F2EB9-ON852569E3.007E45DC@pok.ibm.com>

>What happens if there are two validation  errors in the same document?

The current DOM recommendation doesn't address  validation at all. DOM
Level 3's Load/Save and Content Model chapters will address this.

The answer will still probably be dependent upon your particular parser,
since recovering from an error and continuing to validate can sometimes be
challenging; some parsers may be more successful at doing so than others,
or may make more of an effort to do so. We're designing the API so that
multiple errors can be reported, but how well that works in practice is
probably going to wind up being a quality-of-implementation issue.

However, the Content Model chapter -- if implemented; it's going to be
optional -- will allow you to revalidate a DOM tree without having to
reparse it, which at least partly addresses your concern.

______________________________________
Joe Kesselman  / IBM Research
Received on Monday, 29 January 2001 18:07:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT