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.


  • Create XML Tags to Return Web Service Response in XML Format

    We can create well formed xml tags with the help of xElement. Its better way to create xml response instead of static defined tags in string varible or append in to string builder.
  • Generate XML From Object in C#

    In this article we will generate XML from the object in C#.
  • Invoking a POST Method Located at a Specific URL With XML Request

    This article describes how to invoke a POST method located at a specific URL with the XML Request.
  • Insert, Update and Delete in XML File Using C#

    This article explains how to do insert, update and delete operations in a XML file using C#.
  • Get XML Data Using Ajax and jQuery

    Here you will learn how to get XML data using Ajax and jQuery. The data is provided without a full page reload.
  • Check XML Validatity Using jQuery

    In this article you will learn how to check the validity of XML code using JQuery.
  • Basics of XML and Validation of XML

    This article covers the basics of XML and the validation of XML.
  • Export Excel File to an XML Data File

    In this article you will learn how to import an Excel file from an XML file or export an Excel file to an XML file.
  • Creating XSD of a XML Using Visual Studio

    I would like to share a simple way to create a XSD of a sample XML file.
  • Reading XML Files

    In this article, I will show you how to use the XmlTextReader class to read an XML document and write data to the console.
  • Document Object Model (DOM)

    This article introduces the Document Object Model (DOM).
  • Validating an XML Document Programmatically

    This article provides an example of validating a XML document using the XmlReader and XMLScema class of System.Xml and System.Xml.Schema.
  • What is Web Service?

    Web applications are accessed by users mainly by a web browser or a mobile device. A Web service is software that makes itself available over the Internet
  • XAML Infragistics Controls

    Jason Beres talks about Infragistics Controls for XAML Developers at TechEd 13
  • Copying XML Documents Using C#

    How to copy one XML file from one location to another with a different file name.
  • Verify XML Names Using C#

    The XML specification does not allow some characters to be a part of valid XML names. We can use the XMLConvert class and its methods to verify, encode and decode names.
  • Free Book: Programming XML with C#

    Programming XML with C# is a 65 pages book written for C# programmers who wish to learn how to work with XML documents using C# language. In this book, you will learn the basic elements of XML and classes and objects available in .NET Framework to work with XML.
  • Binding XML Data to ListView Control - DataSet Approach

    In this article we will discuss how to bind an XML File Data to ListView Control.
  • Write Characters to XML using C#

    How to write characters to XML using C#.
  • Write XML to Console Using C#

    How to create XML in C# and write it to the Console.
  • Populating TreeView Control from XML file

    The blog post describes how to populate a TreeView Control with an XML file.
  • Generating XML File From SQL Database Using C#

    In this blog, we Generate XML File From SQL Database Using C#.
  • Delete XML Node using C#

    This blog defines how to delete XML node in C#.
  • Pull Distinct Data Using LINQ-to-XML

    Today, in this article let’s play around with one of the interesting and most useful concepts in XML.
  • Processing XML Data: Part 1

    In this article I will show you how to work with XML Data.