Hello Bruce
Take a closer look at the docs, and try
my $xml = XMLin($data, SuppressEmpty = undef);
HTH,
Rob
Bruce Ferrell wrote:
I have a wee problem I can seem to solve. I don't want to get into
should XML::Simple be used, it's not relevant to my question... I don't
think. Below is
Thanks Rob,
I'm glad you validated the solution I found. I figured out that if the
empty tag was suppressed, I could test for the tag being present or not.
Bruce
On 01/30/2010 04:16 AM, Rob Dixon wrote:
Hello Bruce
Take a closer look at the docs, and try
my $xml = XMLin($data,
You misunderstand my solution Bruce. If you set the options as I
described, you will have a hash element that looks like
'phone2' = undef
instead of the awkward
'phone2' = {}
This would be my preference instead of suppressing the empty element
altogether, which leaves no indication at
Perl monks,
I have a wee problem I can seem to solve. I don't want to get into
should XML::Simple be used, it's not relevant to my question... I don't
think. Below is some very simple XML and below that the output after
passing it through Dumper.
As you can see phone2 is a blank tag (no
On 1/29/10 Fri Jan 29, 2010 1:34 PM, Bruce Ferrell
bferr...@baywinds.org scribbled:
Perl monks,
I have a wee problem I can seem to solve. I don't want to get into
should XML::Simple be used, it's not relevant to my question... I don't
think. Below is some very simple XML and below that