Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2016-10-26 12:31 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (340 votes). Check out past polls.