XML DOM parser


  Translation results:

The XML DOM defines standards for accessing and processing XML documents.

XML DOM parsersyntax

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 parserexample

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); 
}

Popular Recommendations

Home

Videos

Q&A