Hello, (FYI: you should ask usage questions on [email protected])
riyer <[email protected]> wrote on 05/28/2009 09:29:47 PM: > Hello, > > I have a couple questions regarding the Xerces XML Schema API. > > 1. Is it possible to load/create an XSModel from an existing DOM Document > object? Yes, take a look at XMLGrammarPreparser [1]. You can pass it a DOMInputSource [2] as input. Once you're done loading call toXSModel() on the XSGrammar. > 2. If the above is not possible, then is there any way to access the > underlying Document object from an XSModel? (I am of course assuming that > the XS implementation internally uses DOM). No, because the XSModel implementation isn't backed by a DOM. DOM is used as an intermediate representation in constructing the XSModel but it's thrown out at the end. > Any advise is appreciated. > > Thanks, > Ranjit > -- > View this message in context: http://www.nabble.com/Loading-an- > XSModel-from-a-DOM-Document-object-tp23772911p23772911.html > Sent from the Xerces - J - Dev mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] Thanks. [1] http://xerces.apache.org/xerces2-j/faq-grammars.html#faq-3> [2] http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/util/DOMInputSource.html: Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected]
