I have come across an issue that is puzzling me but should be no problem for the 
experienced scholars on here.  I am trying to parse an XML Schema document as a 
generic XML document, and I would like to be able to separate namespaces from names.  
For example, consider the following global element:
 
<xsd:complexType name="myType" ref="abc:otherType" />
 
I would like to do a couple of things with this.  First, I would like to be able to 
determine that an element called complexType is in the Schema namespace (rather than 
just consider it an element with name "xsd:complexType").  Secondly, I would like to 
know that the value of ref is "otherType" in the namespace aliased with the prefix 
"abc".  Is there a way to do this with the DOM (perhaps DOM Level 3)?  There may also 
be a way to do this with the Schema API, but the API only allows for processing of 
top-level components.  I need to be able to deal with components that may be local to 
something else.
 
Any insight as to the incorrectness of any implicit assumptions I have made here or 
into the manner in which I can separate name from namespace is appreciated.
 
Thanks again for your help.
 
NEIL

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to