Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Is there any XML reader like this?

by ashok.g (Beadle)
on Jan 15, 2012 at 14:43 UTC ( #947995=note: print w/replies, xml ) Need Help??


in reply to Re: Is there any XML reader like this?
in thread Is there any XML reader like this?

toolic,

I have been using your code and which uses Simple::XML but now I am unable to retrieve the "ip" with the same code:
print "CMD:",@{ $xml->{$server}{ip} },"\n";
This is printing nothing.

And I have my XML file with server like:
<station19> <ip>10.0.1.113</ip> </station19>
Anything missing here?

Thanks,
Ashok

Replies are listed 'Best First'.
Re^3: Is there any XML reader like this?
by toolic (Bishop) on Jan 15, 2012 at 23:31 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://947995]
help
Chatterbox?
[stevieb]: yep. That's definitely the issue. Unzipping the file manually in explorer extracts the whole thing properly

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-03-28 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (335 votes). Check out past polls.