I have an XML document that is linked to other document and I can't figure out what the best way to try and merge them before query qith an XpathNavigator.
Simple example...a root xml document contains the root folder that can contain items and other folders. The other folders can either live in the root document or be in other xml files completely (to make it easier for multiple developers/processes to work on the data at the same time.)
I think the developer that was doing it before was using xlink or xpointer to see if the folder had an href attribute and then called some script to open the document and merge it with the parent creating one big tree (to query later).
Does anyone know what the best way to do this in .Net would be? I think i could do it running the intial file through XSLT and use the document() function but I'm wondering if there is a better way to do this.
Thanks,
Cy Huckaba
Austin, TX
rootFolder.xml ******************
<folder name="rootFolder">
<item name="a" />
<item name="b" />
<item name="c" />
<folder name="thingys">
<item name="ta" />
<item name="tb" />
</folder>
<folder name="widgets" href="widgets.xml"></folder>
<item name="d" />
</folder>
widgets.xml *****************************
<item name="wa" />
<item name="wb" />
<item name="wc" />
<folder name="widgets">
<item name="wwa" />
<item name="wwb" />
</folder>
<item name="wd" />