Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How to Validate XSD File with XML?

by gube (Parson)
on Jan 10, 2006 at 05:36 UTC ( [id://522096]=perlquestion: print w/replies, xml ) Need Help??

gube has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,

I refer http://perl-xml.sourceforge.net/faq/#parser_selection and Perl & XML written by Erile T.Ray & Jason Mcintosh from O'reilly book there also they explained based on XML::LibXML and XML::Validator::Schema to validate. I have mentioned in the link How to check xml elements? what is the problem using that modules for me. so, please pour your ideas regarding this question. Refer examples, links or books regarding my question

Thanks in Advance.

Replies are listed 'Best First'.
Re: How to Validate XSD File with XML?
by vek (Prior) on Jan 10, 2006 at 07:44 UTC

    gube, so you've tried XML::Validator::Schema written by our very own samtregar?

    If you have, would you mind helping us out by posting the code you tried and some examples of failure/error messages.

    -- vek --
Re: How to Validate XSD File with XML?
by astroboy (Chaplain) on Jan 10, 2006 at 08:54 UTC
    Qube, I'm not understanding what you're asking that is not met by the answers in the other thread. I think part of the problem is that I don't quite grasp your aversion to the libxml2/XML::LibXML solution. Can you elucidate?

      ok thanks for your comments astroboy. I Can use XML::LibXML but, my requirement is i don't want to install system packages libxml2 that's why i have asked again . ok anyway, thanks...

        You can install a local copy of libxml2 as a non-root user, according to this entry in the libxml2 FAQ - that should get around the 'system packages' requirement. Alternatively, the xsdvalid tool from XMLmind looks like it might be a less involved install than libxml2.

        If installing anything non-Perl is out of the question, you could, if you're desperate enough, use the online XSD validator. Which is currently displaying:

        Operational Troubleshooting in Progress
        
        The Gotdotnet team is aware of the current site operational issues and is working on a solution. Thanks for your patience.

        But, hey, it's free... ;-)

        ok, I understand. The only thing I can say is that with libxml2 you get all sorts of juicy XML functionality in addtion to schema validation, so it's well worth installing it. Other than that, sorry, I have no further ideas
Re: How to Validate XSD File with XML?
by Anonymous Monk on Jan 10, 2006 at 07:55 UTC
    I have mentioned in the link How to check xml elements? what is the problem using that modules for me
    The XML::LibXML is working fine. But, it's a system package and I do not want to install anything dependent on system packages.
    1. use XML::LibXML
    2. fix XML::Validator::Schema
    3. write your own
Re: How to Validate XSD File with XML?
by Anonymous Monk on Jan 10, 2006 at 07:48 UTC
    What do you think changed in 3 days?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (9)
As of 2024-04-23 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found