I'm pleased you found a solution to your problem. You might be interested in this tutorial which compares using XML::Simple to XML::LibXML and demonstrates that the libxml code can be simpler and more powerful:
| [reply] |
Many thanks for reply. I like libxml & libxslt, but now I have no real experience with it - we GingerAlliance guys use XML::Sablotron :))
Now I deside to include libxml(2) into my own project, instead of sablotron, so I will study XML::LibXML intensively.
My wish is to have very simple tool giving parsed short xml configuration files as perl structure, for read-only random access. So, firstly parse all syntacticall objects presented (elements, text nodes, notes, CDATAs, PIs,...) and check well-formedness, optionally check validity (RelaxNG rather than dtd) and inject it into perl without lose of informations. And perl subroutines must know, where are the relevant information pieces, traversing via very simple API, without any expectations about parameters of xml to perl structure transformation.
XML::Simple is great, but too great to use it with my requirement, imho...
| [reply] |