in reply to Re: Re: Preferred Methods (again)
in thread Preferred Methods (again)

If parsing XML data could be done with a simple regex, those modules would probably not exist.

It's possible. Just that it doesn't have any error checking.
See: Parsing pseudo XML files

BMaximus

Replies are listed 'Best First'.
Re: Re: Re: Re: Preferred Methods (again)
by Matts (Deacon) on Jan 17, 2002 at 17:07 UTC
    XML parsing is not possible with a *simple* regexp, it requires a proper parser. Having said that, it's possible with lots of complex regexps, or at least mostly possible. See Paul Kulchenko's XML::Parser::Lite for that.

    Now parsing a subset of XML, well that's a totally different matter. And entirely appropriate in certain situations. Yes, that is me saying that.

    Oh, and XML::SAX::PurePerl has plenty of error checking. But it's likely way too slow for the questioner's problem.