Using XML for ASP page

The content of the ASP page can be read from an xml file. This helps you in many ways. With this method you are free to alter only the xml file content which can also be done programmatically so that the end user who updates the content need not work with the page design. Hence it is wise to display the content from an xml file if you are going to keep on changing the content constantly.

_______________________________________________


_______________________________________________

The steps involved in using an xml file to display the content of a page are very simple if you are using ASP as the front end. All you have to do is to create an xml document object using the Server.CreateObject command. Once you have created the object you can use the object's Load command to load the xml file.

Use Server.MapPath to get the physical path to the xml file. Once you have loaded the xml file, now your job involves navigating through the xml file to the contents of each node and then displays it in the page. For example if xmlobj is the xml object then you can use the command like,

xmlobj.documentElement.childNodes(1).text

to get the text in the element 1 (the second node).

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.

Giant Antarctic Iceberg Could Affect Global Ocean Circulation (Free Internet Press)
An iceberg the size of Luxembourg that contains enough fresh water to supply a third of the world's population for a year has broken off in the Antarctic continent, with possible implications for global ocean circulation, scientists said Friday.




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