Is there any way of requiring the value of an element's attribute to equal the value of a child element of the previous element. What I mean is hopefully explained by the following snippet from an XML file.
I have been asked to create an XSD file for existing XML files whose structure cannot be changed, and I need to ensure that each <nextvenue> element has a value that matches the city attribute of the following <venue> element. Is this possible?
Code:
<venue city="London"> <nextvenue>Sydney</nextvenue> </venue> <venue city="Sydney"> <nextvenue>Rome</nextvenue> </venue>