Displaying the Contents of an XML File in an ASP.NET Web Page

This demo illustrates how to use the XML Web control to display an XML file in an ASP.NET Web page using an XSLT transformation file. For this demo, both the XML contents and the XSLT file are stored in a file located in the same directory as this demo.

You can opt to view the XML file or view the XSLT file.


Title: Teach Yourself Active Server Pages 3.0 in 21 Days
Price: 34.95
Authors:
  • Mitchell
  • Atkinson
Year Published: 1999
Title: Designing Active Server Pages
Price: 29.95
Authors:
  • Mitchell
Year Published: 2000
Title: ASP.NET: Tips, Tutorials, and Code
Price: 34.95
Authors:
  • Mitchell
  • Mack
  • Walther
  • Seven
  • Anders
  • Nathan
  • Wahlin
Year Published: 2001
Title: ASP Unleashed
Price: 24.95
Authors:
  • Walther
Year Published: 1998
Title: ASP.NET Unleashed
Price: 32.45
Authors:
  • Walther
Year Published: 2002
Title: Creating Data Driven ASP.NET Applications
Price: 31.95
Authors:
  • Seven
Year Published: 2002
Title: ASP.NET Data Web Controls Kick Start
Price: 29.95
Authors:
  • Mitchell
Year Published: 2003
Title: Programming ASP.NET
Price: 19.95
Authors:
  • Liberty
  • Hurwitz
Year Published: 2002


Source Code
<asp:xml runat="server" id="xmlDisp" 
       DocumentSource="aspnetbooks.xml"
       TransformSource="dispBooks.xsl" />


[Return to the article]