XSD schema validation constraints



There is a xml structure as follows


Is it possible in XSD to block "dataRef" element referencing it's parent "data/dataRef" attribute value (basically a child can't match parents value constraint). Is it possible to make two way relationships mandatory as seen in the "order/item" of "AAAA" which has a reference to "AEAR" "data" element but that element does not have a "AAAA" data item referencing "data" "AAAA"


AAAA BASA AEAR BASA


No comments:

Post a Comment