I would like to make a few ajax calls for a few XML documents and
combine the results into one XML document.

Specifically I have these three files:

http://www.netelier.com/files/XMLMerge/doc0.xml

<records>
 <record>
  <x>foo</x>
  <y>bar</y>
 </record>
 <record>
  <x>baz</x>
  <y>mit</y>
 </record>
</records>

http://www.netelier.com/files/XMLMerge/doc1.xml

<info>
 <x>foo</x>
 <y>bar</y>
</info>

http://www.netelier.com/files/XMLMerge/doc2.xml

<info>
 <x>baz</x>
 <y>mit</y>
</info>

And I would like to take the doc1.xml and doc2.xml documents and
insert them into this combined XML document:

<records>
 <record>
  <x>foo</x>
  <y>bar</y>
  <info>
   <x>foo</x>
   <y>bar</y>
  </info>
 </record>
 <record>
  <x>baz</x>
  <y>mit</y>
  <info>
   <x>baz</x>
   <y>mit</y>
  </info>
 </record>
</records>

Any help would be appreciated!

Reply via email to