I am trying to combine data from multiple xml sources into a single XML file using JavaScript or jQuery. I iterate over the files using jquery $ .Ajax to read the file and select the first node (node I want) and want to copy and add it to my destination XML file and then go.
I can select the first row using:
firstRow = $(testThis.responseXML).find("z\\:row:eq(0)");
alert('firstRow : ' + firstRow );
But I can not copy node and add it. I am trying to use:
newXMLData.append($(firstRow).text());
I tried using .text (),. HTML () ,. val (), but nothing works.
Any ideas?
source
share