How to display XML data in ASP page?

It is easy to display the xml data from an xml file into an asp page. The following are the steps involved in displaying the data.

_______________________________________________


_______________________________________________

" Create an xmldom object using Server.CreateObject method
" Set the xmldom object's async property to False
" Load the xml file using the Load method and using the ServerMapPath method
" Navigate to the childnodes using the xml object's documentElement.childNodes
" Get the text in the child node and assign to some variable
" Display the variable in the asp file

With these steps it is easy to use the data from an xml file in an asp page.

The async property of the xml object is set to False to the xml data as it is read without any delay. We use the Server.MapPath in the load method to load the xml file, so that we get the exact physical path to the xml file which is necessary to use the load method.

Press Release (PharmiWeb)
Health Discovery Corporation (OTCBB: HDVY) announced today that it supports the American Cancer Society's decision to issue new guidelines in the face of substantial data found in the largest prostate cancer studies ever conducted that were recently published in the New England Journal of Medicine in 2009. These published studies warned that using PSA to screen for prostate cancer doesn't ...

Health Discovery Corporation Applauds American Cancer Society's Decision against the Use of the PSA for Routine ... (Business Wire via Yahoo! Finance)
SAVANNAH, Ga.----Health Discovery Corporation announced today that it supports the American Cancer Society's decision to issue new guidelines in the face of substantial data found in the largest prostate cancer studies ever conducted that were recently published in the New England Journal of Medicine in 2009.

Manipulate XML File Data Using C# (Developer.com)
Nearly 95 percent of .NET applications use XML for various tasks. A main usage for Web developers is combining XML with HTML to display information on Web pages, which relieves them from having to spend a long time editing the content on their Web pages.




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