Reading XML data in ASP page

There may be situations in your application where you might need to read xml data from an xml file and then display it in the asp page. It is easy to achieve this in an asp page.

_______________________________________________


_______________________________________________

For this you have to use the xmldom object to load the xml file. The first task is to create an xmldom object and then use the Load method available in that to load the xml file you need. Use Server.MapPath to get the physical path of the xml file.

Declare some variables to hold the data from the xml file and then navigate through the xml file and get the values in the nodes of the xml file.

For this you can use the documentElement.childNodes. It is better to set the property async of the xmlobject to false so that you can load the xml file faster as it is read. Now use the variables that hold the xml data in the body of the web page just like you display the variables in asp.

Wow. I can't believe you (New Matilda)
In reply to Tofu-Gate : Wow. I can't believe you just repeated your same arguments again. Your first point - cave paintings show people have been eating meat for thousands of years. Therefore we should eat meat. You're just repackaging your argument. I won't both repeating myself about this, I will just refer you to the second paragraph of my previous comment in which I explained with examples ...




FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover







 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Cisco CCNA Certification Video Tutorial Guide - Learn How to Pass the Cisco CCNA 640-802 Exam... Guaranteed!

Train Signal Computer Training