Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
There's probably an easy answer to this, I have an xml file, for example:
I want to put the address values into a scalar, the equivalent of say:<?xml version="1.0"?> <?leverage formatversion="1.0"?> <config servertype="sunhosts" reporttype="patches and levels" > <server name="atlas" osname="solaris" osversion="2.8"> <address>192.168.0.2</address> <address>192.168.0.22</address> <address>192.168.0.222</address> <patchlevel>Generic</patchlevel> <perlversion>5.6.1</perlversion> </server> </config>
Thanks
Jonathan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Simple question
by The Mad Hatter (Priest) on Mar 19, 2004 at 14:01 UTC | |
|
Re: XML::Simple question
by tinita (Parson) on Mar 19, 2004 at 14:31 UTC | |
|
Re: XML::Simple question
by pbeckingham (Parson) on Mar 19, 2004 at 14:04 UTC | |
by The Mad Hatter (Priest) on Mar 19, 2004 at 14:11 UTC |