in reply to HTML-Parser usage

Since you said "Everything works", what have you got so far? Did you write it yourself or just cut-and-paste it?

It's easier for us to point you in the right direction if you show what you've accomplished so far and what exactly it is that you need help with.