What is the best approach to take when referencing one XML resource from another? For example, if I have two resources: items.xml and orders.xml with a structure that resembles:
items.xml
<items>
<item name="pencil" price="1.99">
</items>
orders.xml
<orders>
<order>
<item name="pencil">
</order>
</orders>
if I want some kind of relational setup so that if I change the price of pencil it is reflected within orders automatically, what would be the best method to do this? Does XML have some sort of automatic uniqueID/key assignment?
No comments:
Post a Comment