XML Schema - how do you conditionally require address elements? (street, city, state, etc)
- by Sly
If an address can be composed of child elements: Street, City, State, PostalCode...how do you allow this XML:
<Address>
<Street>Somestreet</Street>
<PostalCode>zip</PostalCode>
</Address>
and allow this:
<Address>
<Street>Somestreet</Street>
<City>San Jose</City>
<State>CA</State>
</Address>
but not this:
<Address>
<Street>Somestreet</Street>
<City>San Jose</City>
</Address>
What schema will do such things!?