XML from web

  • Thread starter Thread starter melton9
  • Start date Start date
M

melton9

I'm a bit of a beginner with .net. I have an internet address that
when you visit it is only XML. Is there an easy way to access this and
put it into a datagrid? Many thanks.
 
Thus wrote (e-mail address removed),
I'm a bit of a beginner with .net. I have an internet address that
when you visit it is only XML. Is there an easy way to access this
and put it into a datagrid? Many thanks.

The quickest way I can think of is loading the XML via HTTP in a DataSet...

DataSet ds = new DataSet();
ds.ReadXml("http://host/path/to/dataset.xml");

.... and bind it to your grid.

Cheers,
 
Back
Top