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.


  • Bechir Bejaoui

    How to Generate an XML Document Programmatically-Using System.Xml.XmlWriter: Part III

    In previous articles, I demonstrate how to generate a given xml file using both the DOM “Document Object Model” and the SAX “Serial Access parser for Xml” technologies. In fact, they are very inter...
    Bechir Bejaoui Sep 04, 2014
  • Bechir Bejaoui

    How to Generate an XML Document Rogrammatically Using DOM: Part I

    In fact, I wrote this article as an answer of one among questions posted as a part of a C sharp corner forum. I will enumerate methods of how to do that through three articles, the first one illust...
    Bechir Bejaoui Sep 04, 2014
  • Bechir Bejaoui

    How to Generate an XML Document Programmatically-Using SAX Technology: Part II

    In the previous article, we’ve proceed to generate an XML document using DOM technology which is document object model, Now, we’ll do the same thing but, this time using SAX technology.
    Bechir Bejaoui Sep 04, 2014
  • Claudio Inacio

    Xml and Schema Validator

    This article shows how to create a simple and generic module for validating XML files with their respective schema files.
    Claudio Inacio Aug 22, 2014
  • Behzad Babaei

    Saving DataGridView setting in xml and restore it!

    This article shows how to save the user manipulation on the grid and restore those settings when the user runs the program.
    Behzad Babaei Aug 05, 2014
  • Parminder  Pal Singh

    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.
  • Jignesh Trivedi

    Generate XML From Object in C#

    In this article we will generate XML from the object in C#.
    Jignesh Trivedi May 20, 2014
  • Amogh Natu

    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.
    Amogh Natu Apr 25, 2014
  • Abhay Shanker

    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#.
    Abhay Shanker Apr 17, 2014
  • Joginder Banger

    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.
    Joginder Banger Apr 11, 2014
  • Joginder Banger

    Check XML Validatity Using jQuery

    In this article you will learn how to check the validity of XML code using JQuery.
    Joginder Banger Apr 09, 2014
  • Joginder Banger

    Basics of XML and Validation of XML

    This article covers the basics of XML and the validation of XML.
    Joginder Banger Apr 08, 2014
  • Arvind Pradhan

    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.
    Arvind Pradhan Apr 05, 2014
  • Devesh Omar

    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.
    Devesh Omar Jan 15, 2014
  • Mahesh Chand

    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.
    Mahesh Chand Dec 19, 2013
  • Ankur Mishra

    Document Object Model (DOM)

    This article introduces the Document Object Model (DOM).
    Ankur Mishra Sep 15, 2013
  • Kailash Chandra Behera

    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.
  • Naveed Zaman

    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
    Naveed Zaman Jul 29, 2013
  • Mahesh Chand

    XAML Infragistics Controls

    Jason Beres talks about Infragistics Controls for XAML Developers at TechEd 13
    Mahesh Chand Jun 18, 2013
  • Mahesh Chand

    Copying XML Documents Using C#

    How to copy one XML file from one location to another with a different file name.
    Mahesh Chand Jun 09, 2013
  • Mahesh Chand

    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.
    Mahesh Chand May 27, 2013
  • Mahesh Chand

    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 ...
    Mahesh Chand May 08, 2013
  • Shankar M

    Binding XML Data to ListView Control - DataSet Approach

    In this article we will discuss how to bind an XML File Data to ListView Control.
    Shankar M Apr 13, 2013
  • Mahesh Chand

    Write Characters to XML using C#

    How to write characters to XML using C#.
    Mahesh Chand Mar 04, 2013
  • Mahesh Chand

    Write XML to Console Using C#

    How to create XML in C# and write it to the Console.
    Mahesh Chand Mar 03, 2013