asp.net 3.5

How to transform XML with LINQ to XML in C#

You can find from the articles: How to use XSL to transform XML content, How to use XslCompiledTransform class to transform XML file in C#, and How to use Xml control to transform XML file to HTML output different ways to change the representation of XML. Although XSL will still continue to be used in a …

Learn more

How to use Xml control to transform XML file to HTML output

There are some cases when you need to combine transformed HTML output with other content and web controls. You can resolve these issues by using Xml control which displays the result of an XLS transformation in a discrete portion of a page. You can find from the articles: How to use XSL to transform XML content, …

Learn more

How to use XslCompiledTransform class to transform XML file in VB.NET

If you want to transform XML file into formatted HTML you can use combination of stylesheet and the XslCompiledTransform class (contained in the System.Xml.Xsl namespace). Note: In the next example will be used stylesheet explained in the article How to use XSL to transform XML content. The next code performs this transformation and saves the result …

Learn more

How to use XslCompiledTransform class to transform XML file in C#

If you want to transform XML file into formatted HTML you can use combination of stylesheet and the XslCompiledTransform class (contained in the System.Xml.Xsl namespace). Note: In the next example will be used stylesheet explained in the article How to use XSL to transform XML content. The next code performs this transformation and saves the result …

Learn more

How to use XSL to transform XML content

Extensible Stylesheet Language (XSL) is an XML-based language for creating stylesheets. You can use stylesheets (also known as transforms), with the help of an XSLT processor, to convert your XML document into other documents. In other words you can use an XSLT stylesheet to transform one type of XML to a different XML structure. An even …

Learn more

How to validate an XML document with XML Schemas in C#

You can validate an XML document against a schema, by using built in XmlReader’s validation features. Note: You can find more details about XML schemas from the article How to use XML Schemas in XML document.  You can follow the next steps when performing validation:

1. You need to import the System.Xml.Schema namespace, …

Learn more

How to search XML content with XPath in VB.NET

The GetElementsByTagName() method illustrated in the article How to search XML content with XmlDocument in VB.NET is fairly limited. It allows you to search based on the name of an element only. You can’t filter based on other criteria, such as the value of the element or attribute content. In these cases you can use XPath …

Learn more

How to search XML content with XPath in C#

The GetElementsByTagName() method illustrated in the article How to search XML content with XmlDocument in C# is fairly limited. It allows you to search based on the name of an element only. You can’t filter based on other criteria, such as the value of the element or attribute content. In these cases you can use XPath …

Learn more

How to search XML content with XmlDocument in VB.NET

You can perform a search with the XmlDocument by using  XmlDocument.GetElementsByTagName() method, which  searches an entire document tree for elements that have a specific name and returns an XmlNodeList that contains all the matches as XmlNode objects.

For example, the following code retrieves the title of each Book in the document:

 

‘ Load the XML file.

Dim XmlFile As …

Learn more

How to search XML content with XmlDocument in C#

You can perform a search with the XmlDocument by using  XmlDocument.GetElementsByTagName() method, which  searches an entire document tree for elements that have a specific name and returns an XmlNodeList that contains all the matches as XmlNode objects.

For example, the following code retrieves the title of each Book in the document:

 

// Load the XML file.

string xmlFile = …

Learn more