News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Loading XML Text Into the Parser

Started by ben2ong2, October 05, 2006, 05:21:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ben2ong2

Internet Explorer supports two ways of loading XML into a document object: the load() method and the loadXML() method. The load() method loads an XML file and the loadXML() method loads a text string that contains XML code.
The following code loads a text string into Microsoft's XML parser:
<script type="text/javascript">var txt="<note>"txt=txt+"<to>Tove</to><from>Jani</from>"txt=txt+"<heading>Reminder</heading>"txt=txt+"<body>Don't forget me this weekend!</body>"txt=txt+"</note>"var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")xmlDoc.async="false"xmlDoc.loadXML(txt).........</script>
If you have Internet Explorer, you can try it yourself.
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login