|Perl Monk, Perl Meditation|
Operating on XML, or XML::Simple is too simple!by jdtoronto (Prior)
|on Aug 05, 2005 at 04:52 UTC||Need Help??|
jdtoronto has asked for the
wisdom of the Perl Monks concerning the following question:
If you are getting sick of my newbie XML questions I ask you to bear with me once more.
I started using XML::Simple becasue, in one programme I wrote it did just enough and did it rather well. But now I find that it is so simple that in fact it can't even do simple things. For example, using the XML that I will show you, it cannot parse it, then output the same thing! The documentation agrees with this and says, well, live with it or use something else. I can't live with it, so now I ask your advice as to how I go about doing just exactly what I need to do.
Here is the XML:
What I need to do is parse this to a Perl data structure and then modify it, outputting it in EXACTLY the same format. What I have given you above is merely a sample.
I am quite prepared to generate the entire thing programmatically. I had started out parsing these examples as an easy way of leveraging my effort - using them as templates in other words.
What should I be using in the way of modules?