asp.net.ph

Skip Navigation Links

Introduction to the Xml Control

Controls You Can Use on Web Forms   ASP.NET Standard Controls   Xml Control


You can use the Xml Web server control to write an XML document, or the results of an XSL Transformation ( XSLT ), into a Web page. The XML output appears in the Web page at the location of the control.

The XML and the XSLT information can be in external documents, or you can include the XML inline.

There are two ways to reference external documents using property settings in the Xml Web server control.

  1. you can provide a path to the XML document in the control tag, or
  2. you can load the XML and XSLT documents as objects and then pass them to the control.

If you prefer to include the XML inline, write it between the opening and closing tags of the control.

NOTE: To use XML data as the source for ASP.NET data controls, you can use the XmlDataSource control.

See Also

Adding Xml Controls to a Web Forms Page



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note