- or download this
my $ref = $xmlParser->XMLin(<<'EOX', ForceArray => 1, KeyAttr => { nod
+e => 'id' });
<?xml version="1.0" encoding="utf-8"?>
...
</node>
</test>
EOX
- or download this
$VAR1 = {
'node' => {
...
}
}
};
- or download this
push(@{$ref{'node'}},{
'id' => 'net_1.2.3.0',
'desc' => 'network',
});
- or download this
push @{$ref{node}}, {
'net_1.2.3.0' => {
desc => ['network']
}
};
- or download this
<?xml version="1.0" encoding="utf-8"?>
<test>
...
<desc>ipaddr</desc>
</node>
</test>