Hi Boris, Michael described Xerces-J functionality to validate a DOM in-memory that we need for. Could you consider to implement it in a near future? Thank you, ________________________________
Vladimir Loubenski Senior Software Developer R&D, Genio <http://www.opentext.com/2/email-signature-logo-global-event> Open Text <http://www.opentext.com/2/email-signature-event-global-event> 38 Leek Crescent, Richmond Hill L4B-4N8 ONT Canada Phone: +1 905 762 6001 ext. 6985 Email: [email protected] <mailto:[email protected]> Web site: http://www.opentext.com/ This email is protected by domestic and international copyright laws and treaties and is the property of Open Text Corporation, it may contain confidential and/or trade secret information of the Open Text Corporation and/or its subsidiaries (OTC), and may be subject to legal privilege in favor of OTC. This email may only be lawfully received, accessed, displayed on a computer screen, printed, copied, and/or used by the specific addressee(s) named above ("Authorized Recipient") for the purpose for which it was sent by OTC. All other rights and licenses to this email are fully reserved to OTC. If you are not an Authorized Recipient, you are required to immediately delete this email in its entirety without printing, copying, using, and/or re-transmitting this email, either in whole or in part. The transmission of this email by OTC is not to be construed as a waiver by OTC and/or the individual sending this email on behalf of OTC of any of their respective rights or privileges at law or otherwise, howsoever arising. ________________________________ From: Michael Glavassevich [mailto:[email protected]] Sent: July 30, 2010 11:21 AM To: [email protected] Subject: Re: Validate the data contained in a DOM tree Boris, Xerces-J has had the ability to validate a DOM in-memory for years. It behaves as if you serialized and then reparsed the document with schema validation enabled except that it's much more efficient (firing SAX like events to the schema validator from a walk of the DOM tree). I think that's what Vladimir is asking for, not fail-fast setters / continuous validation which seems to be the topic in the post you referenced. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected] Boris Kolpackov <[email protected]> wrote on 07/30/2010 11:07:24 AM: > Hi Vladimir, > > Vladimir Loubenski <[email protected]> writes: > > > My understanding that single way to validate data (Validation against > > XML schema) in a DOM tree is to create the DOM document, write it back > > as XML and re-parse it with validation turned on. Are there plans to > > support validation direct from the DOM tree? > > No, there are no plans to support this at the moment. It is also > questionable how useful this feature will be since it is not clear > what one can do when a validation error has been detected. There > are some errors that will be hard/impossible to fix programmatically > (say, pattern validation error). For a more detailed discussion of > this topic, see the following post: > > http://www.codesynthesis.com/pipermail/xsd-users/2008-January/001443.htm l > > Boris > > -- > Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog > Open-source XML data binding for C++ http://codesynthesis.com/products/xsd > XML data binding for embedded systems http://codesynthesis.com/products/xsde > Command line interface to C++ compiler http://codesynthesis.com/projects/cli > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]
<<emailsupport-logo-opentext-global-event.gif>>
<<emailsupport-event-image-opentext-global-event.gif>>
