[jQuery] Merge XML Documents with jQuery

2010-02-28 Thread dandieb...@gmail.com
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


 
  foo
  bar
 
 
  baz
  mit
 


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


 foo
 bar


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


 baz
 mit


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


 
  foo
  bar
  
   foo
   bar
  
 
 
  baz
  mit
  
   baz
   mit
  
 


Any help would be appreciated!


[jQuery] Re: Modifying an XML document with jQuery

2009-01-19 Thread dandieb...@gmail.com

I have essentially the same problem.

I have some XML returned from an AJAX call and need to modify the XML
slightly
before using it on the web page.

In reference to the original post, how do you use jQuery to modify the
original
XML document into the desired document:

Original XML:

  


Desired XML: