| Revision: | 874 |
| Committed: | Sat May 25 21:53:39 2013 UTC (12 years, 5 months ago) by s10k |
| Content type: | text/javascript |
| File size: | 339 byte(s) |
| Log Message: | XmlTools: v0.9 |
| # | Content |
|---|---|
| 1 | //instantiate the W3C DOM Parser |
| 2 | var parser = new DOMImplementation(); |
| 3 | |
| 4 | //load the XML into the parser and get the DOMDocument |
| 5 | var domDoc = parser.loadXML($xmlData); |
| 6 | |
| 7 | domDoc.getDocumentElement().getElementsByTagName("InitialTransform").item(0).firstChild.setNodeValue("Jogh"); |
| 8 | |
| 9 | $xmlData=domDoc.getDocumentElement().getXML(); |