Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

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


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

Getting the following errorNot an ARRAY reference at ProcessStatus.pl line 44. when I have this option that will have stations mixed like:

<station20> <user>netcool</user> <process assignment="temporary">some text</process> </station20> <station19> <user>netcool</user> <process>nco_objserv</process> <process>nco_p_mttrapd</process> </station19>

Code snippet....
my $xml = XMLin("PROCESS.CONF"); ...... foreach $process ( @{ $xml->{$server}{process} } ) .....
Anything missing here?

Thanks,
Ashok


Comment on Re^4: Is there any XML reader like this?
Select or Download Code
Re^5: Is there any XML reader like this?
by ashok.g (Beadle) on Jan 19, 2012 at 14:01 UTC
    Appreciate any help here!

    Thanks,
    Ashok
Re^5: Is there any XML reader like this?
by Corion (Pope) on Jan 19, 2012 at 14:49 UTC
      Thanks.
      I will work on this and update you.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://947997]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (10)
As of 2014-12-21 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (104 votes), past polls