XmlDocument Replacement



anyone know of another way of doing an XMLDocument in .NET micro framework? apparently, i am unable to create an XmlDocument object, and so i need to find a suitable replacement. Also, I cannot create an XmlNode object either.


What I am trying to do is grab information from an rss weather feed (XML) off the internet when a button is pressed.



//Grab wather data and display useful information.
System.Xml.XmlTextReader WeatherXML = new System.Xml.XmlTextReader(http://ift.tt/1ynrkdL);
System.Xml.XmlDocument doc = new XmlDocument();
doc.Load(http://ift.tt/1ynrkdL);
XmlNode node = doc.DocumentElement.SelectSingleNode("/rss/channel/item");
string attr = (node.LastChild.InnerText);

No comments:

Post a Comment