Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use XML::Simple; $xml = new XML::Simple; my $data = XMLin($xmlresult); print Dumper($data);
and the output for the dumper is:
$VAR1 = { 'xmlns:s' => 'http://schemas.xmlsoap.org/soap/envelope/', 's:Header' => { 'log' => { 'xmlns' => 'http://schemas.solarwinds +.com/2007/08/informationservice' } }, 's:Body' => { 'QueryXmlResponse' => { 'QueryXmlResult' => { 'query +Result' => { + 'template' => { + 'resultset' => { + 'column' => { + 'FriendlyName' => + { + + 'ordinal' => '2', + + 'type' => 'String' + } +, + 'AddressMask' => +{ + +'ordinal' => '1', + +'type' => 'String' + }, + 'SubnetAddress' = +> { + + 'type' => 'String', + + 'ordinal' => '0' + +} + } + } + }, + 'data' => { + 'row' => { + 'c2' => 'Extra Subnet', + 'c1' => '255.255.248.0', + 'c0' => '192.168.221.0' + } + }, + 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance' + } }, 'xmlns' => 'http://schemas +.solarwinds.com/2007/08/informationservice' } } };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML for a newbie
by Athanasius (Archbishop) on Feb 10, 2016 at 07:31 UTC | |
|
Re: XML for a newbie
by Laurent_R (Canon) on Feb 10, 2016 at 07:35 UTC | |
|
Re: XML for a newbie (SOAP)
by Anonymous Monk on Feb 10, 2016 at 07:27 UTC | |
|
Re: XML for a newbie
by crusty_collins (Friar) on Feb 10, 2016 at 14:52 UTC |