1
Answer

Loading XML data with XDocument

Steve Johnson

Steve Johnson

11y
2k
1
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)