Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. parsing rss feed

parsing rss feed

Scheduled Pinned Locked Moved LINQ
databasecomxmljsonperformance
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    carrigart
    wrote on last edited by
    #1

    Hey, Looking for some help in parsing a rss feed for yahoo weather. The xml looks as follows - <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <rss version="2.0" xmlns:yweather="http://weather.yahooapis.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84\_pos#"> <channel> <title>Yahoo! Weather - Sunnyvale, CA</title> <description>Yahoo! Weather for Sunnyvale, CA</description> <language>en-us</language> <yweather:location city="Sunnyvale" region="CA" country="US"></yweather:location> <yweather:wind chill="57" direction="350" speed="7"></yweather:wind> </channel> </rss> I am able to go through it and pick out information in most parts but i am having trouble getting to the attributes in the nodes such as <yweather:location city="Sunnyvale ...../> . When i use a query such as Dim results = From node In XDoc...<channel> _ Select node I get all the nodes apart from the ones with <yweather:....whatever I have tried to use an xmldocument object aswell and have been able to get positioned on a element with the <yweather part but havnt been able to access its attributes. Hope someone can help

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups