How can I get the data from this xml site ( http://xboxapi.duncanmackenzie.net/gamertag.ashx?GamerTag=Festive+Turkey ) and specify the data and use it as a string?
How can I get the data from this xml site ( http://xboxapi.duncanmackenzie.net/gamertag.ashx?GamerTag=Festive+Turkey ) and
Share
If you want to get the XML into a readable data structure directly, you can load it via the URI directly into an XDocument object.
You can then easily extract the information via Linq-to-XML into either a concrete or anonymous type. (Check the System.Linq and System.Xml.Linq namespaces.)
Other methods of dealing with the XML include serialization, XmlDocuments and XPath, etc.
Here is a sample of something you could do with XML and Linq.