W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2001

Re: Extrating Link text ...

From: Sven Laaks <slaaks@informatik.uni-essen.de>
Date: Thu, 10 May 2001 14:14:34 +0200
Message-Id: <5.0.2.1.2.20010510140337.00a65b88@pop3.norton.antivirus>
To: John Kieti <jkieti@yahoo.com>, www-lib@w3.org
At 09.05.2001 22:54 -0700, John Kieti wrote:

Am trying to use libwww to extract link text from
HTML. Am able to extract the links (HREFs) but not the
corresponding link text (I know it can be a image).

Might anybody give me an idea or point me to some code
with this?

Hi John,

I using "HText_registerTextCallback(*)" in my main-function.
This gives the text between two tags to the function *.
I set a global variable for the open-A-tag and reset it
when the close-A-tag is found. So I get only the text for the links.
For the syntax of the function-* look in the libwww-src.

Hope this helps,
Sven Laaks
Received on Thursday, 10 May 2001 08:15:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT