XML from web

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.
 
J

Joerg Jooss

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top