Hi i have a XSD that i want to parse. Note that i don't want validate it against a XML but get all enumerations that i have there. For example
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:simpleType name="fruitNames">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="banana" />
<xsd:enumeration value="apple" />
<xsd:enumeration value="orange" />
<xsd:enumeration value="mango" />
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
I want to extract the enumeration values.. any idea? I tried to play with XSD::Schema but without success..