Skip to navigation
Parse a xml document with javascript
24.02.23
let parser = new DOMParser(); const t = document.querySelector("#xml_query"); const txt = t.value; if (window.DOMParser) { parser = new DOMParser(); xmlDoc = parser.parseFromString(txt, "text/xml"); } else // Internet Explorer { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = false; xmlDoc.loadXML(txt); }
https://stackoverflow.com/questions/17604071/parse-xml-using-javascript
Reply
Anonymous
Information Epoch 1745508095
Silence is golden.
Home
Notebook
Contact us