----- Original Message -----
Sent: Tuesday, April 06, 2004 1:42
PM
Subject: [xml] schema parsing
Hi
suppose I have a shema file that include
following statement.
<simpleType
name="PM_TYPE">
<restriction
base="string">
<enumeration
value="PM_ICP"/>
<enumeration
value="PM_4_20MA"/>
<enumeration
value="PM_LM135"/>
</restriction>
</simpleType>
Is there any way that I could parse this schema
and obtain a set of string contain those 3 text name ? such that I
can force users to choose from them when they write their XML
file? same thing for the "choice" statement in the schema file ? right now I
can only use schema to validate the XML file .
Thank you!
chris