Forum > Packages and Libraries

[SOLVED]William Yang HTMLParser Compile Problem

(1/2) > >>

IndianaJones:
Hi all,
Has anyone experiencing with the William Yang HTMLParser?
I tried to compile the library but it gives the following error.

/Users/lazarus-libs/HtmlParser/HTMLParser.pas(96,69) Error: range check error in set constructor or duplicate set element
The error line is as follows.
Const
   Breaks = [#0..' ', #$3A..#$40, '-', '~', '{', '"', '''', '\', '}', '<', '>', '='];                 

Any idea?

Leledumbo:
The last 3 characters:

--- Code: ---'<', '>', '='
--- End code ---
is already covered by:

--- Code: ---#$3A..#$40
--- End code ---
Just delete them.

IndianaJones:
Thanks Leledumbo

IndianaJones:

Hi again,
Has someone used this library before? Cos I cant figure out to get the text within the html tag like this.
In the following html text, I reached the href value, but not in the string.
<a href="/value/value">The text I want to get</a>

Any help would be appreciated. Thanks.

Sora-Kun:
hi,
try write one on  your own if you don't find a solution.
It's not that difficult.

Cheers,, 

Navigation

[0] Message Index

[#] Next page

Go to full version