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. C / C++ / MFC
  4. using string compare

using string compare

Scheduled Pinned Locked Moved C / C++ / MFC
htmlquestion
6 Posts 3 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.
  • B Offline
    B Offline
    benjamin yap
    wrote on last edited by
    #1

    hi, how do i use string compare to get this value <span class="streaming-datum" id="yfs_l10_^ixic">2,190.06</span> before that line of code,there are many other html codes before and after it. my friend suggested to me using string compare this string "<span class="streaming-datum" id="yfs_l10_^ixic">" and if the compare value is true, do a loop and loop through the remaining text till i get a '<' but how do i continue looking for the value after &lt;span class="streaming-datum" id="yfs_l10_^ixic"&gt;

    L 1 Reply Last reply
    0
    • B benjamin yap

      hi, how do i use string compare to get this value <span class="streaming-datum" id="yfs_l10_^ixic">2,190.06</span> before that line of code,there are many other html codes before and after it. my friend suggested to me using string compare this string "<span class="streaming-datum" id="yfs_l10_^ixic">" and if the compare value is true, do a loop and loop through the remaining text till i get a '<' but how do i continue looking for the value after &lt;span class="streaming-datum" id="yfs_l10_^ixic"&gt;

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You probably need to start by parsing the HTML and looking for entries with one of the keywords e.g. span to narrow the search. This article[^] may be able to help you.

      MVP 2010 - are they mad?

      B 1 Reply Last reply
      0
      • L Lost User

        You probably need to start by parsing the HTML and looking for entries with one of the keywords e.g. span to narrow the search. This article[^] may be able to help you.

        MVP 2010 - are they mad?

        B Offline
        B Offline
        benjamin yap
        wrote on last edited by
        #3

        is there other way beside using HTML Reader C++ Class Library?

        L 1 Reply Last reply
        0
        • B benjamin yap

          is there other way beside using HTML Reader C++ Class Library?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          benjamin yap wrote:

          is there other way beside using HTML Reader C++ Class Library?

          Not that I know of; you could try Google to see if there is a better option. Alternatively you write your own, I have done this in the past but it is not a simple task, much better to leverage what others have already done.

          MVP 2010 - are they mad?

          C 1 Reply Last reply
          0
          • L Lost User

            benjamin yap wrote:

            is there other way beside using HTML Reader C++ Class Library?

            Not that I know of; you could try Google to see if there is a better option. Alternatively you write your own, I have done this in the past but it is not a simple task, much better to leverage what others have already done.

            MVP 2010 - are they mad?

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #5

            Well, if I undestand correctly, he could leverage what you have done in the past... :rolleyes:

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            L 1 Reply Last reply
            0
            • C CPallini

              Well, if I undestand correctly, he could leverage what you have done in the past... :rolleyes:

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              CPallini wrote:

              he could leverage what you have done in the past.

              Unfortunately, what I did in the past was for my ex-employer, and they kept all (rights to) the code. :((

              MVP 2010 - are they mad?

              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