How to Validate XSD File with XML?
gube
created: 2006-01-10 00:36:42

Hi monks,

I have asked the question three days before in Seekers for perl Wisdom. I get two more ideas from joost/Astroboy and i go through the ideas. But, still i have some doubt. So, i asked in discussion to get more ideas from great 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.

Re: How to Validate XSD File with XML?
vek
created: 2006-01-10 02:44:44

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?
created: 2006-01-10 02:48:32
What do you think changed in 3 days?
Re: How to Validate XSD File with XML?
created: 2006-01-10 02:55:01
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?
created: 2006-01-10 03:54:32
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?
Re^2: How to Validate XSD File with XML?
created: 2006-01-10 05:34:03

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...

Re^3: How to Validate XSD File with XML?
created: 2006-01-10 06:45:32

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... ;-)

Re^3: How to Validate XSD File with XML?
created: 2006-01-10 13:55:16
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

perlmonks.org content © perlmonks.org and Anonymous Monk, astroboy, gube, john_oshea, vek

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03