Hi Michael,
   Thanks for the answer.

I'll be having more questions sometime soon, which I'll post to the list.

On Wed, May 13, 2009 at 7:21 AM, Michael Glavassevich
<[email protected]> wrote:
> Hi Mukul,
>
> The XSModel is just a container of SchemaGrammars. It's only going to have
> what was put in the grammars; in your example just the one element
> declaration and other components reachable to it by reference.
>
> What you're looking for is this method [1]. It returns the complete XSModel
> from the ElementPSVI (usually at the end of the validation root). The schema
> validator fills that with all the SchemaGrammars that were pulled into the
> grammar bucket in the course of validating the document.
>
> ElementPSVI elemPSVI = (ElementPSVI)augs.getItem(Constants.ELEMENT_PSVI);
> XSModel xsmodel = elemPSVI.getSchemaInformation();
>
> Thanks.
>
> [1]
> http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/ElementPSVI.html#getSchemaInformation()
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: [email protected]
> E-mail: [email protected]



-- 
Regards,
Mukul Gandhi

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to