using string compare
-
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 <span class="streaming-datum" id="yfs_l10_^ixic">
-
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 <span class="streaming-datum" id="yfs_l10_^ixic">
-
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?
is there other way beside using HTML Reader C++ Class Library?
-
is there other way beside using HTML Reader C++ Class Library?
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?
-
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?
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] -
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]