HTML Parser

BlitzMax Forums/BlitzMax Programming/HTML Parser

Perturbatio(Posted 2005) [#1]
ok, I've been working on this for about 4 hours now and it finally works! Part of it is a translation of a similar piece of code in a Delphi component I have (author unknown).

<See code archives>
http://www.blitzbasic.com/codearcs/codearcs.php?code=1384

I think however, that there is a possible memory leak, but my tired brain can't track it. (it's 4am).


skidracer(Posted 2005) [#2]
It needs an extra ~ at line 16 char 49 to compile.


Perturbatio(Posted 2005) [#3]
strange, it compiles for me without escaping the < symbol. :\
*EDIT*
not the < symbol, the ¨ symbol, but anyways, it compiles fine for me. much strangeness.


skidracer(Posted 2005) [#4]
I had to modify ,"~", to ,"~~", for it to compile.


Perturbatio(Posted 2005) [#5]
ok, could this be a bug? it compiles without error for me.


Perturbatio(Posted 2005) [#6]
The following compiles for me, but when run, it prints only d (the ~ is escaping any one character after it).
Strict

Print "~fd"




Perturbatio(Posted 2005) [#7]
Well, I think it's pretty much done. It will break the page down (HTML or HTML like pages i.e. XML) into individual and easily accessible tags and params. Memory leak solved as well. I am adding it to the code archives as public domain.

http://www.blitzbasic.com/codearcs/codearcs.php?code=1384


semar(Posted 2005) [#8]
Nice and useful, thank you :)

Sergio.


Perturbatio(Posted 2005) [#9]
no problem :)

if you write anything that uses it, it would be nice to know :)