xsd validation , provide information about the ids contained under enumeration

cneerr125

New Member
I am using an xsd to validate my xml. One of the element AddressType should contain only one of the values (1,2,3). \[code\] <AddressType>1</AddressType>\[/code\]I would like to provide information about this ids. e.g. 1 correspond to Home, 2 correspond to Work, etc.I thought of using enumeration like this-\[code\] <xs:enumeration value="http://stackoverflow.com/questions/12626559/1" id="Home"/>\[/code\]but this will fail if any other enumeration has same id. Is there a way that we can provide value as well as the information about the id.
 
Back
Top