Loading XML data with XDocument

May 3 2013 1:52 PM
Hi,


Sorry, I know there a lot of resources on the web for this, it's just the structure of an XML file really confuses me.





I have managed to load the data in using XDocument like so:


private XDocument data;

string URL = "data here"

data = XDocument.Load(URL);

data now contains all of the XML data.


But now I wish to put all the data into a list, so I declare a new list:


private List<string>xmlDataList;







 
Thanks


 


 
 




 

Answers (1)