It seems I can’t easily have an XSD declaration for this simple XML
<root>
<weekday name="Sunday">1</weekday>
</root>
where weekday is a restricted int from 1 to 7 and has a name attribute of type string
Any advice?
Thanks for your support!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure you can. You need a complex type (that adds the name attribute) derived from a simple type (that constrains the integer from one to 7):
I will leave it to you to turn the name attribute into an enumeration.