Using XML and XSLT in ASP pages

You can use the data from an xml file to be displayed in an asp page. This display can be controlled by the use of an xslt document which is used to format the content that is displayed.


_______________________________________________

The first step in using xml and xsl in asp pages is to create two xmldom objects. One is to hold the xml document and the other is to hold the xsl file. You can use the Server.CreateObject command to create such objects. Once they are created.

You have to set the async property of the document object to false so that the xml document can be displayed as soon as it is loaded. Next load the xml and the xsl file to the xmldocument objects.

Once the above steps are done the next step is to transform the xml document using xsl. For this you can use the transformNode method which takes the xsl file as the argument. Thus you can use the xml data available in xml file and use xsl to format the output in an asp file.





_______________________________________________

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.

_______________________________________








 

 

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!

Visit XML Training Material Guide Homepage

 

 

Copyright - © 2004 - 2017 - All Rights Reserved.