so I've created a simple RESTful service with netbeans and produce an XML file in localhost http://localhost:8080/testXML/webresources/entities.categoryid
inside this page is only a simple xml file format:
<categoryids>
  <categoryid>
    <CategoryID>id1111</CategoryID>
    <CategoryName>Study</CategoryName>
  </categoryid>
</categoryids>
I'm using C# to read the xml files, put them into dataset and finally datagridview. how do I do this? it works locally (sample.xml) with
ds.ReadXml(Application.StartupPath + "\\XML\\sample.xml", XmlReadMode.Auto);
dv = ds.Tables[0].DefaultView; 
however it doesn't work with localhost
ds.ReadXml("http://localhost:8080/testXML/webresources/entities.categoryid", XmlReadMode.Auto);
Are there any way to do this?
edit:
NullRferenceException: Object reference not set to an instance of an object.
indicating that the datagridview is null
edit2: sorry, it's supposed to be "ReadXml" not "WriteXml"
 
     
    