Hello,
I'm trying to do some specific stuff in XSD XML Schema: I want to set an element as use="required", only if there a specific value to some attribute of other element.
Example:
<udi att1="all">
<name att2="dsd"/>
<phone att3="dsd"/>
</udi>
I want the that the "phone" element will be a required one, if the "att1" value is "all".
I was told that XPath could work for me, does anyone knows how? is there a better way then XPath?
Thanks,
Udi