I am a beginner in xml, xquery and xpath. Is it possible to link two separate xml documents together based on a defined relationship between them? for example if I have an xml document containing all the customers of an online retail system like so (shortened example):
<customers>
<customer loyaltyPoints = "20" sex = "male">
<customerID>1092</customerID>
<first_name>James</first_name>
<second_name>Roland</second_name>
<email_address>jroland@eircom.net</email_address>
<DOB>
<day>07</day>
<month>05</month>
<year>1970</year>
</DOB>
<orderlist>
<order>[LINK TO ORDER FROM ORDERS.XML]</order>
</orderlist>
</customer>
and a second xml file containing a series of orders like so:
<orders>
<order numberOfItems = "2">
<orderID>384523</orderID>
<items>
<item>[LINK TO PRODUCT X IN PRODUCTS.XML]</item>
<item>[LINK TO PRODUCT Y IN PRODUCTS.XML]</item>
</items>
</order>
</orders>
Can I link the customer to the order in the other document and vice versa? Many Thanks