Thomas Polnik wrote:
Almost anything is better than XML::Simple, but no module can
easily make your data any smaller.
I use XML::Simple without any problems since some years. Which
problems could I get with with this package? My programm converts
many small xml-files (<100kb) to a perl structure daily. Until now I
got no errors or warnings, if the xml file is ok. XML::Simple is for
me a very simple way to get easy access to the xml data. (but I never
tried it with huge xml files.)
Once you have a working application with XML::Simple it will probably
continue to work. But it uses an internal representation of XML data
which is not a proper model, in particular:
- It doesn't preserve a distinction between attributes and child elements
- It doesn't preserve the order of XML elements within a document
- It generally needs the judicious use of the ForceArray and ForceContent
options to get your XML data represented usefully.
- There is no single consistent internal representation of an XML document,
and you have to know a lot about the content of the XML and the options
used when parsing it before you can process the internal data
In addition it generates a Perl structure of heavily nested arrays and hashes
which prevents you from accessing the data in ways usually used with XML, and
makes it difficult to write concise code
However to my knowledge it does what the documentation describes and if you
have a working application then that is fine, although in my opinion it will
be less concise, less readable and less maintainable than something written
with a different module.
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/