Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How does SAX-Validation work?

From: Joseph Kesselman <keshlam-nospam@-------.--->
To: NULL
Date: 5/3/2006 4:46:00 PM

Matthias Langbein wrote:
> I wondered whether anybody knows how XML-Schema-Validation with the
> common SAX-Parsers work. Do they require to build a DOM-Tree before
> processing and validate,  or do they handle validation on the fly?

I would assume SAX parsers validate on the fly, essentially by running a 
finite state machine based on the schema. Note that this means you may 
get halfway through processing the document before you find out that it 
doesn't validate; depending on what you're doing with the document that 
may mean you need to think about database-style "commit phases" or 
reversable operations. (Of course that issue arises any time you've got 
data coming in which may be interrupted partway through, including 
normal communications traffic.)

-- 
Joe Kesselman / Beware the fury of a patient man. -- John Dryden


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent