The XML DOM defines standards for accessing and processing XML documents.
XML DOM parser syntax
Most browsers have built-in XML parsers for reading and manipulating XML.
The parser converts XML into a JavaScript-accessible object (XML DOM).
XML DOM parser example
if (window.DOMParser){ parser=new DOMParser(); xmlDoc=parser.parseFromString(text,"text/xml");} else{ // Internet Explorer xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async=false; xmlDoc.loadXML(text); }