Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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.

Comment on XML validation..
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 examining the Monastery: (5)
As of 2014-10-24 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (137 votes), past polls