RSS

Search Engine

Monday, May 17, 2010

ASP.Net XML Control

The ASP.Net XML Control is an inbuilt web server control that is used to display as XML document on the ASP.Net web page. It provides the functionality to parse the XML document and transform its contents using XSL Transform. Here XSL stands for Extensible StyleSheet Language that provides the functionality to transform the XML document into the desired format such as HTML or XHTML. The ASP.Net XML control consists of properties that accept the paths to the XML document and XSL Transform to display the XML content transformed into the HTML or XHTML format.

Properties of ASP.Net XML Control

You can transform the XML document using XML control in two ways, first is by using inline properties of ASP.Net XML control and second by assigning the objects programmatically.

Inline Properties of XML Control

1. DocumentSource: It accepts string value as a path to the XML document file that is to be displayed on an ASP.Net web page.

2. TransformSource: It also accepts string value as a path to the XSL Transformation file that transforms the specified xml file into HTML format.

Dynamic Objects of XML Control

1. Document: This object type has been deprecated for future use. It provides the XML document object as System.Xml.XmlDocument class object that is to be displayed on the web page using ASP.Net XML control.

2. Transform: It gets or sets the System.Xml.Xsl.XslTransform class object that formats the XML document before writing it to the output stream.

ASP.Net Markup Tag for Xml Control


0 comments:

Post a Comment