Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: How can i validate xml file?

by Anonymous Monk
on Feb 24, 2006 at 04:06 UTC ( #532452=note: print w/replies, xml ) Need Help??


in reply to Re: How can i validate xml file?
in thread How can i validate xml file?

Thanks monkey_boy, and davido now i get answer from davidrw answer chanceless thanks davidrw.

use XML::LibXML; my $parser = XML::LibXML->new(); my $xml_text = eval { $parser->parse_string($text); }; print $@

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://532452]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-08-17 23:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (184 votes). Check out past polls.

    Notices?