Getting XML data into ASP page
Once you have loaded the xml document in to the document object, then you can navigate through the nodes and the content of the nodes are assigned to the variables you have declared. These variables are used in the body of the asp page to be displayed wherever you want.
We use the Server.CreateObject("Microsoft.XMLDOM") command to create and xml object into which we will be loading the xml file. Use the Load method of the XMLDOM to load the xml file.
load method takes only the exact physical path to the file, we need
to use the Server.MapPath method to get the exact path of the xml file.
Now use the xmlobject's documentElement.childNodes(n).text to get the
text in the 'n'th node. You can use the xml object's async property
to False to display the content of the xml file as soon as it is read.
This speeds up the display.
Copyright - © 2004 - 2017 - All Rights Reserved.