Skip to main content

Posts

Showing posts with the label XML

Convert Dataset Datatable or GridView to XML in ASP.Net using C#.Net or VB.Net
How to use WriteXml() in C#.Net or VB.Net

In this tutorial i am going to explain about how to convert dataset datatable or gridview into xml document in Asp.Net using C#.Net & VB.Net or How to use WriteXml() in C#.Net or VB.Net. It is achieved using DataTable.WriteXml() method in the System.Data namespace.

ASP.Net - Convert XML to Datatable in C#.net, VB.Net

I have the below XML File  <? xml version = " 1.0 " encoding = " utf-8 " ?> < root >   < Employee >     < Id > 1 </ Id >     < EmpName > Kannadasan </ EmpName >     < Gender > Male </ Gender >     < Dept > Reading Books </ Dept >   </ Employee >   < Employee >     < Id > 2 </ Id >     < EmpName > Kaviyarasan </ EmpName >     < Gender > Male </ Gender >     < Dept > Playing Games </ Dept >   </ Employee >   < Employee >     < Id > 3 </ Id >     < EmpName > Ramkumar </ EmpName >     < Gender > Male </ Gender >     < Dept > Reading Books </ Dept >  ...

Asp.Net Xml Exceptions Cheat Sheet

Exception Description UpaException XmlException Returns detailed information about the last exception. XmlSchemaException Returns detailed information about the schema exception. XmlSchemaInferenceException Returns information about errors encountered by the System.Xml.Schema.XmlSchemaInference class while inferring a schema from an XML document. XmlSchemaValidationException Represents the exception thrown when XML Schema Definition Language (XSD) schema validation errors and warnings are encountered in an XML document being validated. XPathException Provides the exception thrown when an error occurs while processing an XPath expression. XsltCompileException The exception that is thrown by the Load method when an error is found in the XSLT style sheet. XsltException The exception that is thrown when an error...