cur4so
cur4so

Reputation: 1820

XML::Simple is it possible to eliminate tag description?

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

Answers (1)

Chris J
Chris J

Reputation: 1375

Try the NoAttr option in XMLin(): XML::Simple

Upvotes: 3

Related Questions