Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Problems? Is your data what you think it is?
 
PerlMonks  

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.


Comment on Re: XML::Simple isn't listening to SuppressEmpty
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-04-18 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (460 votes), past polls