I try to extract specific data from an xml feed that comes from youtube.
XML link: http://gdata.youtube.com/feeds/api/videos/WFPnl8aEPgo?alt=rss
I’ve been able to extract info like:
Title,
Description
using this query string:
Dim Title As String =
videoInfoNavigator.SelectSingleNode(“/item[1]/title”).Value
However, I’m not able to find the proper query string to get info like
media:keywords
The
media:keywordsuse the media namespace prefix, which is bound to the namespace-urihttp://search.yahoo.com/mrss/If you can register the namespace prefix, you could use an XPATH like this:
However, if you need a more generic XPATH that does not rely on the namespace prefix, you could express it like this:
Applied to your example code: