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. Visual Basic
  4. How do I.....

How do I.....

Scheduled Pinned Locked Moved Visual Basic
questionhtmlhelp
10 Posts 5 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.
  • R Offline
    R Offline
    rspercy65
    wrote on last edited by
    #1

    How would I extract the informatiom from html code... I want to extract the table data and display it tabpage w/gridview. I need the table headers, the URL's for the images, weather discriptions(Partly Cloudy, PM T-Storms, etc..) and the 5 day highs and lows. How would I go about getting the data I described? The web page is the Yahoo rss feed, lines 280 to 299. This is the 5-day forecast. THNX in advance for the help.

    rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

    L D 2 Replies Last reply
    0
    • R rspercy65

      How would I extract the informatiom from html code... I want to extract the table data and display it tabpage w/gridview. I need the table headers, the URL's for the images, weather discriptions(Partly Cloudy, PM T-Storms, etc..) and the 5 day highs and lows. How would I go about getting the data I described? The web page is the Yahoo rss feed, lines 280 to 299. This is the 5-day forecast. THNX in advance for the help.

      rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, 1. you get the HTML code in one of many ways, e.g.: - use WebBrowser, set URL, get DocumentText - use HttpRequest and HttpResponse 2. having one huge string, extract what you need, in one of many ways, e.g.: - if it is strict XML, you could use XmlDocument or XPath (don't ask me for details!); - if not: if you are proficient in regex, use it; - otherwise, use String methods, such as IndexOf and Substring. Whatever you do, be aware that you are relying on how it is constructed now, which may change at any time; with strict checking you may avoid false results and will fail sooner, with more relaxed matching, you may fail without knowing it and return false information. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


      R 1 Reply Last reply
      0
      • R rspercy65

        How would I extract the informatiom from html code... I want to extract the table data and display it tabpage w/gridview. I need the table headers, the URL's for the images, weather discriptions(Partly Cloudy, PM T-Storms, etc..) and the 5 day highs and lows. How would I go about getting the data I described? The web page is the Yahoo rss feed, lines 280 to 299. This is the 5-day forecast. THNX in advance for the help.

        rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

        D Offline
        D Offline
        David Mujica
        wrote on last edited by
        #3

        I went to Yahoo's site and found the following link. See if that helps. http://developer.yahoo.com/weather/[^]

        R 1 Reply Last reply
        0
        • D David Mujica

          I went to Yahoo's site and found the following link. See if that helps. http://developer.yahoo.com/weather/[^]

          R Offline
          R Offline
          rspercy65
          wrote on last edited by
          #4

          I didnt know that page existed, but I already have all that info. I already get everything except for the 5-day forecast, which I do not know how to extract it. I need some type of a code example to get me started in the right direction.

          rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

          C 1 Reply Last reply
          0
          • L Luc Pattyn

            Hi, 1. you get the HTML code in one of many ways, e.g.: - use WebBrowser, set URL, get DocumentText - use HttpRequest and HttpResponse 2. having one huge string, extract what you need, in one of many ways, e.g.: - if it is strict XML, you could use XmlDocument or XPath (don't ask me for details!); - if not: if you are proficient in regex, use it; - otherwise, use String methods, such as IndexOf and Substring. Whatever you do, be aware that you are relying on how it is constructed now, which may change at any time; with strict checking you may avoid false results and will fail sooner, with more relaxed matching, you may fail without knowing it and return false information. :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


            R Offline
            R Offline
            rspercy65
            wrote on last edited by
            #5

            I think I will have to use the string options. The next thing is, How do I do this in VB? All I need is a starting position and I can figure the rest out. How do I use the code?

            rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

            1 Reply Last reply
            0
            • R rspercy65

              I didnt know that page existed, but I already have all that info. I already get everything except for the 5-day forecast, which I do not know how to extract it. I need some type of a code example to get me started in the right direction.

              rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Have you considered reading the documentation ?

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              R 1 Reply Last reply
              0
              • C Christian Graus

                Have you considered reading the documentation ?

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                R Offline
                R Offline
                rspercy65
                wrote on last edited by
                #7

                I copied the text, printed it out, and have been studying it for the past 2 1/2 hours. I have it figured out. A BIG THANK YOU for your help and support.

                rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

                M 1 Reply Last reply
                0
                • R rspercy65

                  I copied the text, printed it out, and have been studying it for the past 2 1/2 hours. I have it figured out. A BIG THANK YOU for your help and support.

                  rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

                  M Offline
                  M Offline
                  Mycroft Holmes
                  wrote on last edited by
                  #8

                  Excellent - see that's what we are here for to help you learn, give you guidance when you get stuck with some code. Your persistent request for code/example/sample/[snd me codz plz] is a standing joke in the forums and only irritates the people who answer the question here. Thats why you got links and suggestions you read some. When you get stuck into the coding and have a problem then come back and ask, the response will be very different. Note: your post was also 5 voted (not by me) to indicate approval.

                  Never underestimate the power of human stupidity RAH

                  R 1 Reply Last reply
                  0
                  • M Mycroft Holmes

                    Excellent - see that's what we are here for to help you learn, give you guidance when you get stuck with some code. Your persistent request for code/example/sample/[snd me codz plz] is a standing joke in the forums and only irritates the people who answer the question here. Thats why you got links and suggestions you read some. When you get stuck into the coding and have a problem then come back and ask, the response will be very different. Note: your post was also 5 voted (not by me) to indicate approval.

                    Never underestimate the power of human stupidity RAH

                    R Offline
                    R Offline
                    rspercy65
                    wrote on last edited by
                    #9

                    Now I know why I see all links instead of code. You have to Read. If you dont read, You dont code. It is like living in Georgia, USA. This is a 'Right To Work' State, If you dont work, You dont Eat.

                    rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

                    M 1 Reply Last reply
                    0
                    • R rspercy65

                      Now I know why I see all links instead of code. You have to Read. If you dont read, You dont code. It is like living in Georgia, USA. This is a 'Right To Work' State, If you dont work, You dont Eat.

                      rspercy If "You wash your feet and find a pair of socks " Then "You ARE a Redneck" End If

                      M Offline
                      M Offline
                      Mycroft Holmes
                      wrote on last edited by
                      #10

                      Yep Singapore is the same, no welfare.

                      Never underestimate the power of human stupidity RAH

                      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