Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

XSD Documentation

$
0
0

I need to store some configuration data in XML files. Users have to be able to create those XML files through a GUI by simply selecting certain values. In order for them to know what each option means, some tooltip and description for each one should be displayed. I am trying to achieve this through XSD file. My program will parse the different options incl. tooltip and description to dynamically generate the GUI. The XSD file will also validate the generated XML file. Below is an example. How can I get the green part (tooltip & description attributes) implemented?

<xs:schema>
  <xs:simpleTypename="option1">
    <xs:restrictionbase="xs:string">
      <xs:enumerationvalue="entry11"tooltip="blah11" description=”desc11”/>
      <xs:enumerationvalue="entry12"tooltip ="blah12" description=”desc12”/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleTypename="option2">
   
<xs:restrictionbase="xs:string">
      <xs:enumerationvalue="entry21"tooltip ="blah21" description=”desc21”/>
      <xs:enumerationvalue="entry22"tooltip ="blah22" description=”desc22”/>
    </xs:restriction>
  </xs:simpleType>

  <xs:elementname="input1"type="option1"/>
  <xs:elementname="input2"type="option2"/>
</xs:schema>



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>