Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - How does SAX-Validation work? [Thread Next] Re: How does SAX-Validation work?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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
