Reputation: 1820
I'm trying to parse an xml file using XML::Simple library. In a designed way a line like:
<opt one="1">Text</opt>
well be parsed to
{ 'one' => 1, 'content' => 'Text' }
is it possible to get
'opt' => 'Text'
instead?
Upvotes: 2
Views: 76