I have an xml schema that I am working on. I wanted to know if it was a
normal thing to do something like this:
1. Have a ZipCode simple type that has to be 5 characters long.
2. Have a StateCode simple type that has to be 2 characters long.
3. Have an Address complex type that has:
- Street (string)
- City (sgring)
- State (StateCode) [noted in item 2 above]
- ZipCode (ZipCode) [noted in item 1 above]
4. Have a Venue complex type that has the following:
- Name (string)
- Address (Address) [noted in item 3 above]
- PhoneNumber (string)
5. Have an element that can contain only 1 instance of the Venue complex
type.