Code:
Private Sub Process_Info_Node(ByRef feed As RSSFeed, ByVal XMLNav As XPathNavigator)
Dim XMLInfo As XPathNodeIterator
XMLInfo = XMLNav.SelectChildren(XPathNodeType.Element, True)
XMLInfo.Current.MoveToFirstChild() Move into channel
Do
If (CStr(XMLInfo.Current.Name).ToUpper = "TITLE") Then
feed.siteTitle = CStr(XMLInfo.Current.Value)
End If
If (CStr(XMLInfo.Current.Name).ToUpper = "LINK") Then
feed.siteLink = CStr(XMLInfo.Current.Value)
End If
Loop While (XMLInfo.MoveNext())
End Sub
This takes a XPathInterator set to the node "channel", moves into the child nodes, there there are nodes called "title", "link", "description" etc, but my method only finds title nodes, any idea why? If i print out each node it finds its just title...