Use the XML control to display the contents of an XML document or the results of an XSL Transform.
The XML document to display is specified by setting one of three properties. These three properties represent the different types of XML documents that can be displayed. You can display a System.Xml.XmlDocument, an XML string, or an XML file by setting the appropriate property.
You can optionally specify an XSL Transform document that formats the XML document before it is written to the output stream by setting one of two properties. The two properties represent the different types of XSL Transform documents that can be used to format the XML document. You can format the XML document with a System.Xml.Xsl.XslTransform or with an XSL Transform file by setting the appropriate property. If no XSL Transform document is specified, the XML document is displayed using the default format. The following table lists the properties for specifying an XSL Transform document.
Revision number 2, Monday, February 25, 2008 1:22:23 AM by mbanavige
You must Login to comment.
|
Tue, Feb 16, 2010 12:56 AM
by Aamir Hasan
|
public object getXML(string XMLPath) { System.Xml.Serialization.XmlSerializer xmlSer = new System.Xml.Serialization.XmlSerializer(typeof(Library.FileInformation)); FileStream fs = new FileStream(XMLPath, FileMode.Open); try { object obj = xmlSer.Deserialize(fs); fs.Close(); fs.Dispose(); return obj; } catch { if (fs != null) { fs.Close(); fs.Dispose(); } return null; }
|
Revision #2
Sat, Oct 11, 2008 8:23 AM
by
|
LINQ to XML
It seems we can LINQ to everything these days. Here's some resources that will get you started using LINQ with XML. Introduction .NET Language-Integrated Query for XML Data- This MSDN introduction is 44 pages in fairly easy to read detail on LINQ to XML
|
New
Wed, May 27, 2009 12:29 AM
by
|
System.XML namespace
XML namepace has XmlWriter class to write to XML file. Code in C#: using System.XML; //Add this namespace to use XmlWriter and XmlReader classes StringBuilder sb = new StringBuilder(); XmlWriter xwrite = XmlWriter.Create("c:\\sample.xml");// here
|
Revision #2
Mon, Feb 4, 2008 8:00 AM
by
|
XMLDataSource
There's a good overview of ths control on MSDNwith examples like Binding a Tabular Control to the XmlDataSource Control and Filtering Data Using the XmlDataSource Control. However, the reall meaty stuff is found on the blogs, and on http://www.asp.net
|