Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Perl Misc (http://www.velocityreviews.com/forums/f67-perl-misc.html)
-   -   validate xml with xsd in perl script (http://www.velocityreviews.com/forums/t891550-validate-xml-with-xsd-in-perl-script.html)

JanVDV 03-26-2005 07:42 AM

validate xml with xsd in perl script
 
Hey,

I have an xml file, and I want to assign a xml schema to it.
The only way I can do this is through a perl script. I am not
able to open the xml file and type the schema reference to it,
so I really need to do it through the script.
Can someone help me?

TX.

Brian McCauley 03-26-2005 09:06 AM

Re: validate xml with xsd in perl script
 
JanVDV wrote:

> I have an xml file, and I want to assign a xml schema to it.
> The only way I can do this is through a perl script. I am not
> able to open the xml file and type the schema reference to it,
> so I really need to do it through the script.


XML::LibXML last time I researched it in detail did not do this but I
have heard since that libxml now does so I would hope XML::LibXML would
soon (but it's not documented).

There is XML::Validator::Schema but that admits to being incomplete.

If that doesn't work there's an XSL script somewhere that transforms an
XSD into another XSL script that validates that XML conforms to the XSD.
(So you could use XML::LibXSLT).


robic0@yahoo.com 03-26-2005 09:01 PM

Re: validate xml with xsd in perl script
 
Won't Xerces do that, or does it just do validation?



All times are GMT. The time now is 08:22 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.