Re: how to XSD-validate a single element

2009-01-21 Thread q3s38w002
Hi Michael, On Thu, Jan 22, 2009 at 3:34 PM, Michael Glavassevich mrglavas-at-ca.ibm.com| xerces.apache.org| <...> wrote: > [...] > If you need to force a specific element declaration to be used, for example > a local one defined within a complex type, you're out of luck with Xerces-J > 2.9.1. >

Re: how to XSD-validate a single element

2009-01-21 Thread Michael Glavassevich
Hi Uwe, Have you looked at the JAXP Validation API [1]? You can start validation from any Element node in the DOM with this API. If you need to force a specific element declaration to be used, for example a local one defined within a complex type, you're out of luck with Xerces-J 2.9.1. However,

how to XSD-validate a single element

2009-01-21 Thread q3s38w002
Hi all, I'm wondering if it is possible to validate a singe XML element in a larger DOM document. Using Xerces-J 2.9.1, my program can successfully parse and validate an XML document into a DOM using it's accompanying schema (of which I also managed to load it's XSModel). However, I'd like to be