Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: XML::Simple isn't listening to SuppressEmpty

by grantm (Parson)
on May 03, 2012 at 21:12 UTC ( #968810=note: print w/replies, xml ) Need Help??

in reply to XML::Simple isn't listening to SuppressEmpty

XML::Simple can't do what you want there. The SuppressEmpty option is almost what you want except it won't apply in your case because the element will contain name => 'set' and won't be considered empty. Later on, the array folding will cause that attribute to be deleted but by that stage it's too late for the SuppressEmpty check.

The issue is that as soon as you start supporting multiple options, the order in which those options are applied begins to matter.

I'd just use XML::LibXML.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://968810]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2016-10-22 17:02 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.