is it possible to search with TinyXML through a HTML file ? I want to find the link to a certain link-Text. Somewhere in the document is a tag
<a href="/the/link/imlookingfor">searchtext</a>
I just have the seach-text and know, that is is somewhere in the document (but not the child-connection). I want to get the a-Elemnt for this text, get the "href" Attribute and be happy.
Is this possible?
thanks alot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In order to use -any- XML parser to parse an HTML document, it must be XHTML.
They generally are not.
You have to use an HTML to XML converter first, but this is far from working perfectly.
Try HTML tidy at
Hi,
is it possible to search with TinyXML through a HTML file ? I want to find the link to a certain link-Text. Somewhere in the document is a tag
<a href="/the/link/imlookingfor">searchtext</a>
I just have the seach-text and know, that is is somewhere in the document (but not the child-connection). I want to get the a-Elemnt for this text, get the "href" Attribute and be happy.
Is this possible?
thanks alot
In order to use -any- XML parser to parse an HTML document, it must be XHTML.
They generally are not.
You have to use an HTML to XML converter first, but this is far from working perfectly.
Try HTML tidy at
http://sourceforge.net/projects/tidy/
It's worth giving it a shot.