|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
You need to force a reference, otherwise XML::Simple folds simple elements into attributesby inq123 (Sexton) |
| on Mar 21, 2005 at 18:40 UTC ( [id://441341]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The solution is actually just posted above - use ForceArray => 1 when you do XMLin(); The mechanism is as my title suggested: as long as you force a reference out of the value, that value will be treated as element instead of attribute when XMLout writes it out. Here's the set of options that I found the best (for my usage, and probably for general usage) for XML::Simple:
Hope it helps.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||