//instantiate the W3C DOM Parser var parser = new DOMImplementation(); //load the XML into the parser and get the DOMDocument var domDoc = parser.loadXML($xmlData); domDoc.getDocumentElement().getElementsByTagName("InitialTransform").item(0).firstChild.setNodeValue("Jogh"); $xmlData=domDoc.getDocumentElement().getXML();