Take the 2-minute tour ×  I'm having a really hard time figuring
this one out. I wish to make a XML Schema for the file I have
but really don't seem to find a good way of doing it. Here's
what it looks like :  <field name="NameOfField1">   <typeofvalue
name="enumeration">     <val> val </val>  <field
name="NameOfField2">   <typeofvalue name="float">     <val> val
</val>  <field name="NameOfField3">   <otherinfo
name="otherinfo">      <typeofvalue name="integer">        <val>
val </val>  I have to validate the content of each field
depending of their attribute "name". For example, if the value
in "Val" needs to be an enumeration containing the values "None,
Apple, Orange" or if it's an integer between 0 and 15...etc.
Each field "name" can only appear once in the xml file, I have
no control whatsoever on the XML file (I receive it as is and
can't change it).  Help would be greatly appreciated because no
examples I could find really helped me...Thanks !  share|improve
this question Were you aware that a name in