This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Is there a way in the XML APIs to make one Document object that has both the schema and XML in it? Can i then get the XML elements'/attributes' metadata from that object instead of having to do the usual two steps:
* Get schemaTypeInfo * using schemaTypeInfo (name, namespace) look it up in schema object
Joined: Feb 25, 2003
In case anyone's interested, i solved this in Xerces. Simply get the domConfiguration and pass the following parameter:
Then you get an Element from the document root and do the following cast:
XSElementDeclaration elementMetaData = ( ( ElementPSVI ) element ).getElementDeclaration();
From there you're using schema stuff! [ September 29, 2006: Message edited by: Dan Bizman ]