Gareth Reakes <[EMAIL PROTECTED]> wrote on 02/17/2006 04:37:51 PM: > Hey, > > > > > One reason I wondered is that apparently (if the person who told me is > > correct) Xerces-J now does "validate-on-parse" internally by doing the > > validate on the DOM it built. Essentially making it "free" for them to > > expose that feature, I guess. > > > > I take it Xerces-C does *not* do this? Otherwise, it doesn't seem like it > > would be a lot of work, which leads me to believe it does not. > > No, and I did not think that Xerces-J did either. If so, then it would > not work for SAX. Michael, does Xerces-J do validation on a parsed DOM > rather than during parse for some reason now?
Reading over what I wrote yesterday, I had thought you were asking a different question so I'll try again. The schema validator sits in front of the DOM builder in the parser's pipeline [1]. The document is validated as it's parsed not afterwards. In Xerces-J, in-memory validation works by walking the DOM [2]; converting it to XNI events which are then passed to the same schema validator component which is used in a parsing context. > Cheers, > > Gareth > > > -- > Gareth Reakes, Managing Director Parthenon Computing > +44-1865-811184 http://www.parthcomp.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] [1] http://xerces.apache.org/xerces2-j/xni-design.html#pipeline [2] http://svn.apache.org/viewcvs.cgi/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/DOMValidatorHelper.java?view=markup Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
