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 ]