Hello everyone,
I have the following XML file, I want to generate related XSD file with the following requirements, does anyone have ideas?
1. I want the addition result of each percentage items under each rules entry to be 100 (it represent research budget percentage for each Lab, so must be 100% when added together);2. I want the version of department to be 1.0, no other values;3. I want the option to be either "default" or "needApproval".
Any ideas about how to make the xsd generated by xsd tool to be able to handle the 3 additonal requirements?
[Code]<?xml version="1.0" encoding="utf-8" ?><Department name="Computer Science" version="1.0"> <rules name="Lab1"> <rule percentage="100" name="Staff" option="default"/> </rules> <rules name="Lab2"> <rule percentage="75" name="Hardware" option="default"/> <rule percentage="25" name="Software" option="needApproval"/> </rules></Department>[/Code]
thanks in advance,George