The namespace prefix is not a part of the PSVI (post schema validation infoset) which is represented by the XSModel.  I think you'd probably have to do a separate parse of the schema file and rummage in the SAX events or the DOM to find the prefix.
 
Jeff
 
----- Original Message -----
Sent: Thursday, July 31, 2003 11:38 AM
Subject: Getting the namespace prefix

I'm having difficulty in trying to get the namespace prefix.
 
When I get the SchemaGrammar and recurse down through the model, when I get to the simpleTypes (eg "xs:string") I can recover both the name and the namespace of the simpleType, but I can't work out how to recover the namespace prefix.
 
 

Reply via email to