in reply to Re: XML Transaction - random access.
in thread XML Transaction - random access.
Two notes on the use of XML::Simple:
- Since malformed XML is fatal to the parser you may want to wrap its evocation in an eval block.
- Use forcearray to avoid problems with references when the returned structure has empty elements.
$hashref = eval{ XMLin($XMLinaString, forcearray => 1) }; xml_parse_failure($@) if $@; # an error trapping sub
--
Check out my Perlmonks Related Scripts like framechat,
reputer, and xNN.
In Section
Seekers of Perl Wisdom