|
|
| go ahead... be a heretic | |
| PerlMonks |
XMLout and keys/attributesby atreyu (Acolyte) |
| on May 09, 2012 at 14:36 UTC ( #969636=perlquestion: print w/ replies, xml ) | Need Help?? |
|
atreyu has asked for the
wisdom of the Perl Monks concerning the following question:
Hello,
I am using Perl 5.14.2 and XML::Simple (2.18) to create an XML file from a hash, and I'm having trouble. I can't seem to find the right options to pass to XMLout to create the XML file how I want it. I can modify the way I am creating the hash in the first place, if that is best. Here's the code:
and here's the contents of the generated XML file:
however, what i would like is for the "content" key to be removed entirely, e.g.:
if i simply leave off the "content" key when generating the hash, then I lose the ability to make the "id" an attribute of the "param" key. grrr. can anyone help?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||