In the Windows 8 Store app, I read some Xml data using SyndicationFeed . Several RSS feed elements contain, for example, content:encoded elements (xmlns: content = '...'). I think there is no way to get the contents of these elements through SyndicationItem ?!
This is why I am trying inside my foreach(SyndicationItem item in feeditems) something like this:
item.GetXmlDocument(feed.SourceFormat).SelectSingleNode("/item/*:encoded]").InnerText;
But that does not work. And I have no doubt how to use NamespaceManager , etc. In winrt. At the moment I am accessing the content: encoded using the NextSibling method of another element, but this is not a completely clean way.
So, how can I access the contents of an element best?
<?xml version="1.0" encoding="UTF-8" ?> <rss version="2.0" xmlns:content="URI"> <channel> <.../> <item> <title>Example entry</title> <description>Here is some text containing an interesting description.</description> <link>http://www.wikipedia.org/</link> <content:encoded>Content I try to access</content:encoded> </item> </channel> </rss>
source share