Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

How To Manipulate a XML file using DHTML

Share this post!
 Vote this!

In this tutorial, we look at using DHTML to retrieve and display a XML file. This is useful when you need a client side method of including XML files on your webpages.

Retrieving a XML file using DHTML

First and foremost, I should mention that XML file retrieval is only possible in IE5+/NS6+, using their respective DOMs (Document Object Model). The technique required is different for the two browsers (yes, a big surprise!).
- Retrieving a XML file in IE5+
In IE5+, we rely on the ActiveXObject() object to fetch a XML file:
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load("myfile.xml");  more...

0 comments:

Post a Comment