Hi all,
  Let there be an augmentations object, "Augmentations augs". augs is
populated correctly.

If I write the code below:

ElementPSVI elemPSVI = (ElementPSVI)augs.getItem(Constants.ELEMENT_PSVI);

SchemaGrammar schemaGrammar = new SchemaGrammar(null,null,null);
schemaGrammar.addGlobalElementDecl((XSElementDecl)elemPSVI.getElementDeclaration());
SchemaGrammar[] grammarList = { schemaGrammar };

XSModel xsmodel = new XSModelImpl(grammarList);

The element declaration, which is passed to the method,
'addGlobalElementDecl' above is the root element of the XML document.

Would the above code result in a full Schema tree inside, xsmodel?

Or, would xsmodel contain only the first level element declaration
(and no sibling Schema information)?

If, xsmodel would not contain the full Schema tree, how do I construct
it given an Augmentations object?


-- 
Regards,
Mukul Gandhi

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

Reply via email to