XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 14th, 2003, 11:19 AM
0chad0 0chad0 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Atlanta, GA
Posts: 1 0chad0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML data parse project


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway