Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Validating XML against a schema

by tomazos (Deacon)
on Apr 15, 2006 at 00:23 UTC ( #543461=perlquestion: print w/replies, xml ) Need Help??
tomazos has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know of an XML-parsing module that validates against an XML Schema (XML) file?

I'm using Perl to make a resource compiler for an consumer electronic device. As part of it, certain elements are specified as XML document files. Each type of file has an accompanying XML Schema file (also in XML).

Before I run XML::Parser over them, I want to check that they are valid against their XML Schema. (or does it do that already?)

I had a look at XML::Schema, but if I understand it correctly, I would have to manually go through each Schema and build them up at run-time calling methods. It looks like it is unable to parse an XML Schema in its normal XML form.

Anyone know of a better solution?

Thanks in advance.

Update: I just spotted XML::Validator::Schema

I'm guessing that will have something to do with it. :) Sorry guys.

-Andrew.

Replies are listed 'Best First'.
Re: Validating XML against a schema
by planetscape (Chancellor) on Apr 15, 2006 at 07:07 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://543461]
Approved by spiritway
help
Chatterbox?
[cbeckley]: I have a functioning module I use to spawn sets of commands across multiple servers.
[cbeckley]: It's nascent, and probably looks like baby Perl to the veterans.
[cbeckley]: I have several questions about it's future development. But it seems like a lot of code to put in a sopw.
[cbeckley]: Should I put the module and example calling code in cufp, and then ask questions in sopw?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-03-24 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (304 votes). Check out past polls.