i am trying to convert a string to an xml document to read the verious nodes or to append a new node with jquery and there after convert it back to a string again. can anyone help me on the please. this is a snippet of my code
xmldoc.find('ROOT').append(
'<USER><ENAME>'+ $(this).find('ENAME').text() +
'</ENAME><OPERATOR>'+$(this).find('OPERATOR').text() +
'</OPERATOR><PNR>'+$(this).find('PNR').text() +
'<PNR></USER>'
);
if (window.ActiveXObject) {
xmldocStr = xmldoc.xml;
}
// code for Mozilla, Firefox, Opera, etc.
else {
xmldocStr = (new XMLSerializer()).serializeToString(xmldoc);