Welcome   |   ASP.NET   |   Web Services   |   How Do I...?   |   Class Browser
  |   I want my samples in...   

ASP.NET Quickstart Tutorials

Go To...

Xml

The Xml control can be used to write out an XML document or the results of an XSL Transform. The DocumentSource specifies the XML document to use. This document will be written directly to the output stream unless TransformSource is also specified. TransformSource must be a valid XSL Transform document and will be used to transform the XML document before its contents are written to the output stream. The following sample illustrates using a simple Xml control.

C# Xml1.aspx
Run Sample View Source


A preloaded XMLDocument can be passed to the Document property of the Xml control. You can also pass a preloaded XSLTransform to the Transform property of the Xml control. The following sample illustrates creating custom XMLDocument and XSLTransform objects, then passing them into the Xml control to be displayed.

C# Xml2.aspx
Run Sample View Source





Hosted by MaximumASP | Found a broken link? | Contact Us | Terms and conditions | Privacy Policy | Advertise with us
� 2000 - 2008  Mindcracker LLC. All Rights Reserved