Link node tree among different documents

58 views Asked by At

There seems like there should be an obvious solution to this unless I have the wrong approach. So I have some complex data I am trying to store in a native XML db and retrieve using XQuery

example:

<stuff>
 <group1>
  <group1-1>
   <group1-1-1>
   </group1-1-1>
   <group1-1-2>
     <group1-1-2-1>
     </group1-1-2-1>
   </group1-1-2>
   <group1-1-3>
   </group1-1-3>
  </group1-1>
 </group1>
 <group2>
  <group2-1>
   <group2-1-1>
    <group2-1-1-1>
    </group2-1-1-1>
    <group2-1-1-2>
    </group2-1-1-2>
   </group2-1-1>
   <group2-1-2>
   </group2-1-2>
  </group2-1>
 </group2>
</stufF>

No problem right? Yet, the documents are getting quite large because there is a lot of data at the lower levels. Is there a way to split the data among multiple documents and still query them as they were a single document? Like have group1 and group1 as separate documents and make a third wrapper file that encodes their relationship and links to them? If I understand correctly, XLink doesn't work this way. Some of the data would be split like this and some not, and I want to use the same XQuery for them all. I know I could just use the db file structure for the upper levels, but I want that information encoded as well, eventually for display.

0

There are 0 answers