Posted by: Red Souldier | December 2, 2009

ASP.NET: How to read XML Data String to Dataset

The output of XML String:

<?xml version="1.0" encoding="utf-8" ?> 
- <NewDataSet> 
- <Table> 

In order to convert from XML to dataset, this is the code:

     Dim MyDS as new Dataset("Table1")     
     Dim strReader As StringReader = New StringReader(YourXmlString)


  1. Hi,
    Can u plz send a code sample to read an xml string using and C#

    Any help is appreciated.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: