Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: xml parsers: do I need one?

by regan (Sexton)
on Aug 29, 2003 at 13:47 UTC ( [id://287651]=note: print w/replies, xml ) Need Help??


in reply to Re: xml parsers: do I need one?
in thread xml parsers: do I need one?

I did some thinking, and decided:
-speed was NOT essential, as this could really be done via a cron job that runs once in a while
-The xml should not change (we've all heard that one!), but we both know that it will
-xml parsing is far more flexible than regex
-regex is far faster in this case
-xml parsing is both cooler, and the Right Thing to do

I will use a parser, I don't know which one, or how to pick it, but since I have experience using java's DOM parser, I'll probably stick with xml::dom

Replies are listed 'Best First'.
Re: Re: Re: xml parsers: do I need one?
by mirod (Canon) on Aug 29, 2003 at 15:47 UTC
    since I have experience using java's DOM parser, I'll probably stick with xml::dom

    Please DON'T!

    XML::DOM is an old and barely maintained module. XML::LibXML implements the DOM, plus XPath, which makes it a LOT easier (and safer) to use. It drives me crazy to see the number of people still choosing to use it now, when better alternatives are clearly available.

    <rant mode="on">The fact that a module has the name of a standard does not mean a thing. More exactly, it just means that the author was the first one to write a module implementing some of the standard. It does not mean that it is a good module, that you should use it, or that there isn't a better module available. Use your brain! </rant>

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found