Here is the beginning of my schema file:

<xs:schema targetNamespace="http://www.foo.com/SchemaOne";
           xmlns:s1="http://www.foo.com/SchemaOne";
           xmlns:s2="http://www.foo.com/SchemaTwo";
           xmlns:s3="http://www.foo.com/SchemaThree";
           ...>

Using the XML Schema API, I parse the schema and have access to the resulting 
XSModel instance.  Using the method getNamespaceItems() I can get a list of 
XSNamespaceItem and using the getSchemaNamespace() method I can get all the 
namespaces. How do I get the associated prefix for each prefix?

Thanks - Mark

Reply via email to