in reply to DOM Parsers

DOM will only work on well-formed XML, so you'd either have to use XHTML, or find a way to convert the standard grotty HTML most people (not me :-P) write to XHTML. That would be hairy indeed.

Replies are listed 'Best First'.
Re (2): DOM Parsers
by RatArsed (Monk) on Jul 26, 2001 at 15:01 UTC
    Well, I've got the hair :o)

    If you wrote a really manky parser, I expect you could handle really manky code -- DOM was originally developed for (grotty) HTML, although I can see that XHTML would be easier to work with, as someone quoted the other day, "XML is for people who couldn't parse their way out of a paper bag"...

    XML::DOM looks to be halfway there, it would just need the methods added...

    Of course, if there was a W3 DOM Perl parser, the code required to then get it to render HTML would be virtually trivial.

    --
    RatArsed