in reply to Simpler than XML::Simple
Why? Apparently the problem here is to get XML data serialized as perl data structures. I see two use cases: either the producer and the consumer of the XML data is the same system, or it is different systems, for example us and a different party.
In the first case I don't see why to go the XML path at all. It is much easier to code and probably much more efficient if just a data serialization format is used --- YAML, JSON, Storable, bencode, perl (Data::Dumper) or whatever. Typically this involves one line of code for serializing and deserializing, and should always be faster than doing some XML parsing.
In the second case there are two parties which need to handle the XML data. In this case, you must have an XML schema, to have a contract how the XML data should look like. And if you have the XML schema, then you can easily use XML::Compile to gain at least the simplicity of serializing and deserializing.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Simpler than XML::Simple
by grantm (Parson) on Nov 22, 2010 at 21:16 UTC | |
by Your Mother (Archbishop) on Nov 22, 2010 at 21:31 UTC | |
by jdporter (Paladin) on Sep 20, 2012 at 00:26 UTC | |
by Anonymous Monk on Sep 19, 2012 at 22:00 UTC | |
by Anonymous Monk on Sep 20, 2012 at 08:05 UTC | |
by hippo (Bishop) on Apr 03, 2019 at 08:25 UTC | |
Re^2: Simpler than XML::Simple
by Jenda (Abbot) on Nov 22, 2010 at 20:07 UTC | |
by Anonymous Monk on Nov 24, 2010 at 18:30 UTC | |
by Jenda (Abbot) on Nov 24, 2010 at 19:23 UTC | |
by Anonymous Monk on Nov 25, 2010 at 15:19 UTC |