Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

XML validation..

by sathya83aa (Acolyte)
on May 23, 2013 at 07:46 UTC ( #1034903=perlquestion: print w/replies, xml ) Need Help??
sathya83aa has asked for the wisdom of the Perl Monks concerning the following question:

Hi all..

I would like to validate a XML file against a XSD file. I know the LibXML Util could be used to do it.

But I'm not sure how to frame the code to do that. If anyone could help me with the code and how the output should look like, it will be helpful.

Thanks & Regards,

Sathya V.

Replies are listed 'Best First'.
Re: XML validation..
by tobyink (Abbot) on May 23, 2013 at 07:57 UTC

    How is the example in XML::LibXML::Schema insufficient?

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2016-09-29 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (552 votes). Check out past polls.