I can select the first row using:
firstRow = $(testThis.responseXML).find("z\\:row:eq(0)"); // get the first row alert('firstRow : ' + firstRow ); // check the node text
But I can’t seem to copy the node and append it. I’m trying to use:
newXMLData.append($(firstRow).text()); // append row to new xml file
I’ve tried using .text(), .HTML(), .val() but nothing seems to work.
try using the clone() method to get a copy of the node, I doubt that the same node could have 2 parents.
Have you tried simply newXMLData.append(firstRow)?
Here you have a good example about managing jquery and xml:
Look how they find the rows: .find( “person type = ‘girl’ “), perhaps the problem is how you get that row with the Xpath sentence.