I'm having troubling squaring away the parsing of NASA RSS feeds. I've researched all I can and there seems to be one part I'm missing, or for all I know right now it might be more. But I'm only getting one error in VS and I've tried everything. Thanks in advance for any help.
private void UpdateFeedList(string feedXML)
{
StringReader stringReader = new StringReader(feedXML);
XmlReader xmlReader = XmlReader.Create(stringReader);
XElement XDocument = XElement.Load(xmlReader);
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
listBox.ItemsSource = XDocument.Items;
});
}
The error I'm currently getting in VS is in the last line '.items' . VS is telling me that XElement does not contain a definition for Items.