XML::Generator doesn't like multi-level hash
by Aram Mirzadeh other posts by this author
Feb 27 2006 9:10AM messages near this date
view in the new Beta List Site
Henrik Hovgaard Laursen/dwa/Kglbib is out of the office.
|
Re: XML::Generator doesn't like multi-level hash
& XSLT Hello all,
I am having a bit of trouble with XML::Generator. I
am creating a new XML file from a bunch of different
SNMP queries that I am storing in a hash.
The problem is that when I generate the XML I get a
bunch of HASHREF's in the XML rather than the data
points when there is a hash sublevel.
Is this a limitation of XML::Generator?
Here is a sample of Dump and XML output:
$VAR1 = {
'osVer' => '#1 SMP Fri Oct 21 04:03:26 EDT
2005',
'cpuStatsDescr' => 'GenuineIntel, 2992.866
MHz',
'ntServicePackNumber' => undef,
'osRel' => '2.6.12-1.1381_FC3smp, Fedora
Core release Rawhide (Rawhide)',
'table_ipAdEntAddr' => {
'1' => '127.0.0.1',
'0' =>
'192.168.1.4'
},
'sysDescr' => 'Linux SystemEDGE Management
Agent, Concord Communications, Inc.',
'hrMemory' => '1033144',
'table_ipAdEntNetMask' => {
'1' =>
'192.168.1.4',
'0' =>
'127.0.0.1'
},
'nodeName' => 'tigger',
'numCPU' => '1'
};
<server osVer="#1 SMP Fri Oct 21 04:03:26 EDT 2005"
cpuStatsDescr="GenuineIntel, 2992.866 MHz"
osRel="2.6.12-1.1381_FC3smp, Fedora Core release
Rawhide (Rawhide)" table_ipAdEntAddr="HASH(0x89f2aec)"
sysDescr="Linux SystemEDGE Management Agent, Concord
Communications, Inc." hrMemory="1033144"
table_ipAdEntNetMask="HASH(0x8667d20)"
nodeName="tigger" numCPU="1" />
Any pointers would be greatly appreciated.
Thanks.
Aram
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Aram Mirzadeh
Jonathan Stowe
|