http://www.perlmonks.org?node_id=46603


in reply to On XML parsing

Right you are, mirod.
May I add that the same applies to HTML (remember: HTML 4.0 is followed by xhtml 1.0 which is an XML DTD). So parsing HTML is best left to a HTML::Parser or similar parsing or templating modules.

neophyte

Replies are listed 'Best First'.
Re: (2) On XML parsing (tutorial, perhaps?)
by ybiC (Prior) on Dec 14, 2000 at 18:25 UTC
    Sounds like sage advice from good monks mirod, neophyte and tilly.

    For the great unwashed masses (like myself - gasp) who still parse with regexen, new PM Tutorials on HTML::Parser and XML::Parser or even Parse::RecDescent would make t'sall good.   And prolly probably garner a few ++'s.

    Any takers?
        cheers,
        Don
        striving for Perl Adept
        (it's pronounced "why-bick")

      You could start by having a look at the module review for XML::Parser and Parse::RecDescent comes with a huge pod (what else would you expect from Damian anyway, it's even in English, no Latin nor Klingon) and I think a tutorial somewhere in the .tar file.

        Parse::RecDescent also comes with a copy of Damian's article "The man of Descent" which was originally published in the The Perl Journal a couple of years ago. This is a great introduction to parsing technology in general and using Parse::RecDEscent in particular.

        --
        <http://www.dave.org.uk>

        "Perl makes the fun jobs fun
        and the boring jobs bearable" - me