XML
Welcome to XML .NET section of C# Corner. In this section, you will find various XML .NET related source code samples, articles, tutorials, and tips.

RECENT POSTS

  • How To Use Xpath Syntax To Select XML Nodes

    In this blog, you will learn how and when to use different syntaxes of XPath for selecting nodes using expression and steps.
  • Transformation Using CSS And XSLT

    In this session, I will discuss how to convert XML to XSLT. Basically, we need XSLT for the presentation of XML using some user-defined transformation.
  • How To Convert DataTable To XML In C#

    In this article, I will discuss how to read data from a SQL Server into a DataTable and then export DataTable data into XML file in C#.
  • Reading XML File using XmlDocument

    In this article Reading XML File using XmlDocument.
  • Simple XML Parser in C#

    This article shows how to create a very simple XML parser.
  • Creating Excel File Using OpenXML

    In this article I will explain how to create an Excel file using C# without any third party paid dll files or Microsoft Interop services, but OpenXml dll, which is free and available in a nuget packag
  • Deserialize XML with Array Node In C#

    In this blog, I will explain how to deserialize an XML file with an array and single nodes.
  • Writing XML Using DataSet in C#

    How to write a DataSet to an XML file using C#. The WriteXml method writes the current data (the schema and data) of a DataSet object to an XML file.
  • Load XML File Into a DataGridView Using C#

    How to Load an XML File into a DataGridView. In ADO.NET, the DataSet class implements methods and properties to work with XML documents, including reading XML, loading it into a DataSet and writing a
  • Update Data to XML Using LINQ to XML

    Today, in this article let’s play around with one of the interesting and most useful concepts in LINQ to XML. Update Data to XML Using LINQ to XML.
  • Select Data From XML With Where Clause Using LINQ to XML

    Today, in this article let’s play around with one of the interesting and most useful concepts in LINQ to XML. Select Data From XML With Where Clause Using LINQ to XML.
  • Insert Data to XML Using LINQ to XML

    Today, in this article let’s play around with one of the interesting and most useful concepts in LINQ to XML. Insert Data to XML Using LINQ to XML.
  • Delete Data From XML Using LINQ to XML

    Today, in this article let’s play around with one of the interesting and most useful concepts in LINQ to XML. Delete data from XML using LINQ to XML.
  • Add Attribute to XML Using LINQ to XML

    Today, in this article let’s play around with one of the interesting and most useful concepts in LINQ to XML. add a new XAttribute to XML with help of a LINQ query.
  • Create XML in C#

    In this article, we will learn how to create an XML file in-memory and write it to the local storage using C# and .NET.
  • Get Started With XML Using C#

    In my first tutorial I am creating a XML file using C#. It’s like we take some input from the user and generate a XML file according to that.
  • Read XML File Using XMLReader in C#

    In this article, we will try to read from an existing XML file using the XmlReader class.
  • DOM Overview

    In this article, I will explain you about DOM. Document object model (DOM) is a platform and language neutral interface that allows programs and scripts to dynamically access and update XML and HTML d
  • How To Compare Two Dates In XSLT (Transform) By Using C# Code

    This blog gives us an overall idea of how to compare two dates in XSLT.
  • What XSLT Transformation Is And How To Use It

    XSLT (Extensible Stylesheet Language Transformations) is a language for transforming XML documents into other XML documents. Sometimes the user wants to some kind of xml structure instead of whole xml
  • Generating XML Root Node Having Colon-Via Serialization

    This article discusses some of the issues faced while generating an XML on the fly with some defined schema.
  • Convert XML File To Excel File

    Here, we are going to learn to read XML files in C# WindowsForm applications. We are going to make a small single-form application which takes an XML file from the user and convert XML Data to Excel D
  • Construct Readable XML Output From SQL Query From Two Or More Tables Using “For XML PATH” Statement

    In my previous article I discussed about how to get a XML format output from query and process that by using XML AUTO statement, and I give different types of “for XML”.
  • How XML Attribute Overrides Help Serialize Objects With Camel Case

    This article shows how to apply a pattern to Xml serialization and deserialization (in this example camel casing) without having to use a ton of attributes.
  • Deserializing XML Into A List Or Array Of Objects

    Deserialization of arrays (or lists) tends to require the creation of empty classes in C#. Is that necessary?
  • View More