Re: How to get hyperlink in a html file?
Re: How to get hyperlink in a html file?
- Subject: Re: How to get hyperlink in a html file?
- From: Mike Abdullah <email@hidden>
- Date: Wed, 18 Oct 2006 12:38:16 +0100
Well you could use NSScanner to scan up to any instances of:
<a
and then read in the URL from there. Not entirely sure it's the best
method though.
Mike.
On 18 Oct 2006, at 04:57, Leo wrote:
Hi to all,
If this is a stupid question, I apologize in advance, though I am
pretty
new at this Cocoa stuff.
I try to get the content of a html file, if some of the contents is
like
this:
<tr>
<td>
<p><font face="Lucida Grande,Arial, sans-serif"><a
href="../pgs/557.html">About import settings and hard disk
space</a></font></p>
</td>
</tr>
<tr>
<td>
<p><font face="Lucida Grande,Arial, sans-serif"><a
href="../pgs/629.html">About AIFF and WAV custom import
options</a></font></p></td></tr>
how to search the hyperlink string? such as:
get the string "About import settings and hard disk space".
get the string "../pgs/557.html" and convert it to absolute path.
hope someone can help me. thanks.
Leo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden