XML schema - how to bind existence of one attribute to existence of another attribute
Posted
by mayap
on Stack Overflow
See other posts from Stack Overflow
or by mayap
Published on 2010-04-14T11:39:31Z
Indexed on
2010/04/14
11:43 UTC
Read the original article
Hit count: 316
Hellow all,
I have the following xml lines:
"phone" and "city" attributes are optional, but if "phone" exists, also "city" should exists and vise versa. Is it possible to insert such restriction to XML schema?
Thanks.
© Stack Overflow or respective owner