Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Operating on XML, or XML::Simple is too simple!

by Tanktalus (Canon)
on Aug 05, 2005 at 14:48 UTC ( #481263=note: print w/replies, xml ) Need Help??


in reply to Operating on XML, or XML::Simple is too simple!

The "Simple" in many module names has two meanings:

  1. The author picked what they think are common cases, or a simple subset of the overall use cases, to support
  2. A simplified API.
It is quite rare that the author failed to accomplish the first meaning. And each user of the API can debate whether they succeeded at the second.

Since you don't fall into the simple requirements, you need to use a module with more flexibility. The downside to flexibility is that figuring out which API to call with which parameters usually becomes more difficult.

Personally, the first time I had to do XML manipulation, I chose XML::Twig and haven't looked back. In that project, I had a base XML file to work from, and then I had to pull in data from other (non-XML) sources, manipulate those, and then enter them into the base XML file. XML::Twig worked wonderfully for this. My coworkers, not being perl programmers, were duly impressed by the speed not only of the implementation, but of the result. Not hugely impressed - they've come to expect this type of stuff from me working in perl ;-) - but still impressed. :-)

(Oh, and the support from the author of XML::Twig has been pretty impressive on its own ;-})

  • Comment on Re: Operating on XML, or XML::Simple is too simple!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2020-12-05 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (63 votes). Check out past polls.

    Notices?