Skip to content
  • Home
  • About Me
  • Contact
Code Verse

Mission to unlock the mysteries of the Code verse

Category: XML

C#.NET Technology XML

How to convert Dictionary List to XElement

By Sathish | March 12, 2010 by Sathish

XElement represents an XML element. This post will describe about how to convert Dictionary to XML Format. Assume you want the XML to be in the following format, <paramlist><param><key>1</key><value>100</value></param><param><key>2</key><value>150</value></param></paramlist> The Dictionary is having <String, String>…

C#.NET Technology XML

How to load XML File and convert to Dictionary

By Sathish | March 8, 2010 by Sathish

Assume you have a XML file with the following format. <paramlist><param><key>1</key><value>100</value></param><param><key>2</key><value>150</value></param></paramlist>Include the following Namespaces  using System.Collections.Generic;using System.Xml.Linq; Assume your requirement is to read data from XML file and use the data in your project for…

C#.NET MS SQL Technology XML

How to Convert Datatable to XML programmatically

By Sathish | March 5, 2010 by Sathish

Lets assume our requirement is to create a Data Table and convert it to XML format. Use the following block code for your purpose. DataSet myDS = new DataSet(); DataTable dtMyTable = new DataTable(“preview”); DataColumn…

© 2025 Code Verse | WordPress Theme Design by Superb