How to parse XSD's ?
Hi,
starting from an XML Schema like this:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="C1">
<xsd:sequence>
<xsd:element name="e1" type="E1"/>
<xsd:element name="e2" type="E2"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="E1">
<xsd:sequence>
<xsd:element name="s1" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="E2">
<xsd:sequence>
<xsd:element name="s2" type="xsd:long"/>
<xsd:element name="s3" type="xsd:long"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="c1" type="C1"/>
</xsd:schema>
I need to get the defined element types:
C1= { E1 e1; E2 e2; }
E1= { String s1; }
E2= { long s2; long s3; }
I found XML Schema API, but there's not an example for using it.
Is there anyone that can help me?
Thanks in advance. - gNoLo

