HTML Parser

BlitzMax Forums/BlitzMax Programming/HTML Parser

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).

It needs an extra ~ at line 16 char 49 to compile.

strange, it compiles for me without escaping the < symbol. :\
*EDIT*
not the < symbol, the ¨ symbol, but anyways, it compiles fine for me. much strangeness.

I had to modify ,"~", to ,"~~", for it to compile.

ok, could this be a bug? it compiles without error for me.

The following compiles for me, but when run, it prints only d (the ~ is escaping any one character after it).
Strict

Print "~fd"



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

Nice and useful, thank you :)

Sergio.

no problem :)

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