- or download this
use XML::Simple;
use Data::Dumper;
...
<valueTargetPair value="MALE" targetPo="Incoming 1" />
<valueTargetPair value="FEMALE" targetPo="Incoming 2" />
</ObjectType>
- or download this
$VAR1 = {
'AppObject' => 'hello',
...
],
'AppObjectField' => 'gender'
};
- or download this
my $xml = XMLin(\*DATA);
bless $xml, $xml->{AppObject};
warn unless ref $xml eq 'hello';
- or download this
my $xml = XMLin(\*DATA);
foreach my $entry (@{$xml->{valueTargetPair}})
...
print "value=", $entry->{value}, $/;
print "targetPo=", $entry->{targetPo}, $/;
}
- or download this
value=MALE
targetPo=Incoming 1
value=FEMALE
targetPo=Incoming 2