• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Convert received XML into a dataset

here's the background:

i've tried to get the webservice at:  www.teachatechie.com/GJTTWebservices/ZipCode.asmx/GetLocation?zipcode={some zip code} to work, however, i cannot.

The link above returns a pure xml page, and what i was wondering is if the xml returned could be coverted into a dataset very easily and if so how would be the best way to do it?

Thanks for your help.
0
etatmirtna
Asked:
etatmirtna
1 Solution
 
laotzi2000Commented:
       Dim r As System.Net.WebRequest = System.Net.HttpWebRequest.Create("http://www.teachatechie.com/GJTTWebservices/ZipCode.asmx/GetLocation?zipcode=32310")
        Dim re As System.Net.WebResponse = r.GetResponse
        Dim reader As System.IO.StreamReader = New System.IO.StreamReader(re.GetResponseStream())
        Dim ds As New DataSet
        ds.ReadXml(reader)
        reader.Close()

        DataGrid1.DataSource = ds
        DataGrid1.DataBind()
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now