Results 1 to 6 of 6

Thread: [RESOLVED] XML string help

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2012
    Posts
    51

    Resolved [RESOLVED] XML string help

    (Using the url http://weather.yahooapis.com/forecastrss?w=2459115)
    For the XML I can easily display the "ttl" element into a label, but for the

    Code:
    <yweather:forecast day="Mon" date="28 Apr 2014" low="49" high="61" text="Showers Late" code="45"/>
    ,

    I can't figure out how to separate the Monday, monday's low, and and Monday's high, ext., into multiple labels.
    Any help? I'm using the code below to get the current temp and stuff.

    Code:
    Dim wc As New WebClient
            Dim mytext As String
    
            mytext = wc.DownloadString("http://weather.yahooapis.com/forecastrss?w=2459115")
    
            Dim mt As New Xml.XmlDocument
            mt.LoadXml(mytext)
    
            Dim rr As Xml.XmlNodeList = mt.GetElementsByTagName("ttl")
    
            For Each ee As Xml.XmlElement In rr
                MsgBox(ee.InnerText)
            Next
    Thank you very much!
    Last edited by jj103; Apr 28th, 2014 at 08:24 PM. Reason: Turns out ttl isn't the current temp...duh...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width