XPathNodeIterator problem with rss/xml feed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dave

    #1

    XPathNodeIterator problem with rss/xml feed

    I am using the following code to return all items for most rss feeds. This
    works fine for most however today i came across the following feed where itr
    (see below) returns nothing.
    (http://my.abcnews.go.com/rsspublic/world_rss093.xml)

    When compared this bad feed with others they appear to have the same
    structure rss/channel/item

    Why is itr below returning nothing??? please help



    Dim doc As New XPathDocument(R ssUrl)
    Dim nav As XPathNavigator = doc.CreateNavig ator
    Dim iter As XPathNodeIterat or = nav.Select("/rss/channel/item")
    '("/rss/channel/item")

    While iter.MoveNext
    ProcessNode(ite r.Current, RssID, dteNow)
    End While
    Next

Working...