
February 14th, 2003, 11:19 AM
|
|
Junior Member
|
|
Join Date: Feb 2003
Location: Atlanta, GA
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
XML data parse project
OK. So I have this XML file:
PHP Code:
<?xml version='1.0'?>
<Host_Information>
<general>
<name>nexus</name>
<serial>114c024a</serial>
<desc>SUN RSM Box</desc>
<grid>N53</grid>
<prodctrl>8765432</prodctrl>
</general>
<fg_net0>
<fg_int0>qfe0</fg_int0>
<fg_cable0>q5345cc1302 ha1 s4 p3</fg_cable0>
</fg_net0>
<fg_net1>
<fg_int1>qfe1</fg_int1>
<fg_cable1>q5345cc1300 ha1 s4 p3</fg_cable1>
</fg_net1>
<bg_net>
<bg_int>hme0</bg_int>
<bg_cable>q5345cc1300 la2 s4 p3</bg_cable>
</bg_net>
<console>
<con_cable>n47 5-8 q45 s1</con_cable>
</console>
</Host_Information>
What would be the best Perl module to generate this output? I have looked at XML::Simple, but it isn't what I'm looking for. I have a script to input the data into a hash, but I can't seem to get from the hash to the above file. Any help would be greatly appreciated!
Last edited by 0chad0 : February 19th, 2003 at 09:21 AM.
|