Hey all i am reading my XML RSS feed like so:
Dim rssSubNode As XmlNode = rssNode.SelectSingleNode("title")Dim title As String = If(rssSubNode IsNot Nothing, rssSubNode.InnerText, "")rssSubNode = rssNode.SelectSingleNode("itunes:author")Dim author As String = If(rssSubNode IsNot Nothing, rssSubNode.InnerText, "")
The title is retrieved just fine. However, when it try's to get the author it has an error of:
Value of type 'System.Xml.XmlNodeList' cannot be converted to 'System.Xml.XmlNode'.
My XML file looks like this:
<?xml version="1.0" encoding="UTF-8"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><item><title>First Chaper</title><itunes:author>My Name Here</itunes:author><itunes:subtitle>First Chapter: The blah blah.</itunes:subtitle> etc etc....
What do i need to add in order to grab that value?