Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: Preferred Methods (again)

by BMaximus (Chaplain)
on Jan 17, 2002 at 02:21 UTC ( [id://139362]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://139362]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found