"Sean M. Burke" <[EMAIL PROTECTED]> writes:
> So, yes, if you need a robust HTML parser for, I dunno, Oberon V, I think
> your time is better spent starting with the logic in HTML::Parser and
> HTML::TreeBuilder than with what you'd find in, say, Lynx or the w3 mode
> for Emacs. On the other hand, http://www.w3.org/People/Raggett/tidy/ might
> be a good alternative. (And in a pinch, you might do well compiling Tidy,
> shelling to it to convert HTML on hand into XML, and then all you have to
> do is parse the nice clean XML it spits out.)
Would it not be a good idea to add a as_XHTML() method to
HTML::Element. Then it could spit out XML too.
Regards,
Gisle