Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Validating XML

by vinian (Beadle)
on Dec 04, 2011 at 06:47 UTC ( [id://941606]=note: print w/replies, xml ) Need Help??


in reply to Validating XML

use XML::Simple; my $xml = new XML::Simple (KeyAttr=>[]); my $data; eval { $data = $xml->XMLin("cmd-out\/$hostname.xml"); }; if ( $@ ){ die "$@"; }

use eval catch error

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-19 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found