locked
Reading XML having different structure of Information RRS feed

  • Question

  • Hi,

       i am reading an XML file from web service which have different structures and while reading it in data set i am getting an error message "Invalid URI: The Uri string is too long."

    Please help me, how to read this kind of XML file


    Asit

    Thursday, November 29, 2012 8:29 AM

All replies

  • before binding the output xml file to dataset bind it to string reader as follows 

    DataSet ds;

     string result =objService .GetXML(); 

    StringReader strRoute = new StringReader(result);
     ds.ReadXml(strRoute);


    Asit

    Thursday, November 29, 2012 12:49 PM
  • Hi,

    if its structure is different how it can be a XML ? Can you please let us know what is that structure ?

    Have you tried this link : http://msdn.microsoft.com/en-us/library/fs0z9zxd.aspx


    One good question is equivalent to ten best answers.

    Monday, December 3, 2012 10:40 AM