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

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.

Comment on XML validation..
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 scrutinizing the Monastery: (5)
As of 2015-12-01 08:27 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (796 votes), past polls