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: <>
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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:54 UTC