Top Ad unit 728 × 90

random

how to get dataset from xml in .net

public static DataSet GetDataSet(this string xmlString)
        {
            DataSet set = new DataSet();
            try
            {
                StringReader input = new StringReader(xmlString);
                XmlTextReader reader = new XmlTextReader(input);
                set.ReadXml(reader);
            }
            catch (Exception)
            {
                set = null;
            }
            return set;
        }



how to get dataset from xml in .net Reviewed by Vikas Kumar Singh on December 03, 2017 Rating: 5

No comments:

All Rights Reserved by DotNetBasic.com © 2019

Contact Form

Name

Email *

Message *

© 2018 All rights reserved by DotNetBasic. Powered by Blogger.