Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <script> text="<bookstore><book>"; text=text+"<title>Everyday Italian</title>"; text=text+"<author>Giada De Laurentiis</author>"; text=text+"<year>2005</year>"; text=text+"</book></bookstore>"; 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); } document.write("XML string is loaded into an XML DOM Object"); </script> </body> <!-- Mirrored from www.w3schools.com/dom/tryit.asp?filename=try_dom_loadxmltext by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:26:33 GMT --> </html>
Result:
Try it Yourself - © w3schools.com