Getting XML data into ASP page


Getting xml data into an asp page is easy. The steps involved in this process are first to create an xml document object and load the xml file that has data into it.

_______________________________________________


_______________________________________________

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.

Since the 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.

Jewellery Roundup August 2008 15th August 2008 (Platinum today)
Leonardo DiCaprio has been in partnership with Jaeger Le-Coultre as part of a fund-raising programme. This autumn, two watches will be auctioned off to raise money for the Leonardo DiCaprio Fund and one of them is crafted in platinum.

Service Channels (Web Host Directory)
TX Text Control .NET Server 14.0 released for Microsoft Visual Studio 2005 and 2008 to generate invoices as PDF and other industry standard file formats.

The Never-Ending Debate of Specialist v. Generalist (Java World)
Submitted by Ted Neward on Thu, 08/14/2008 - 15:38. Another DZone newsletter crosses my Inbox, and again I feel compelled to comment. Not so much in the uber-aggressive style of my previous attempt, since I find myself more on the fence on this one, but because I think it's a worthwhile debate and worth calling out.




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?

Dallas Web Design- local Dallas web design firm offers site design and backend system development