Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > validate xml with xsd in perl script

Reply
Thread Tools

validate xml with xsd in perl script

 
 
JanVDV
Guest
Posts: n/a
 
      03-26-2005
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.
 
Reply With Quote
 
 
 
 
Brian McCauley
Guest
Posts: n/a
 
      03-26-2005
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).

 
Reply With Quote
 
 
 
 
robic0@yahoo.com
Guest
Posts: n/a
 
      03-26-2005
Won't Xerces do that, or does it just do validation?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java, validate XML with XSD, XML not containing "xmlns:xsi=..." killy971 XML 2 08-15-2008 10:05 AM
Using Python to validate XML against an XSD schema ric_deez Python 0 04-03-2006 09:27 PM
how to validate two XML against XSD? Rushi XML 3 12-09-2005 06:44 AM
how to validate XML against one given xsd file jacksuyu@gmail.com XML 2 02-15-2005 11:25 PM
Re: validate xml against xsd, xerces Jens M. Felderhoff XML 0 07-11-2003 02:29 PM



Advertisments