|
How to get the type of a attribute component in a .xsd file? -
07-12-2009, 10:32 PM
A xsd file needs to be parsed and analyzed, there is a attribute as follows,
<attribute name="arrivalMoment" use="required">
−
<simpleType>
−
<restriction base="integer">
<minInclusive value="0"/>
</restriction>
</simpleType>
</attribute>
need to show a table like
----------------------------
name | datatype |
----------------------------
arrivalMoment | integer |
----------------------------
I got some useful methods from org.apache.xerces.impl.xs
org.apache.xerces.xs, but still can not got the right way to get this datatype.
|