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

Hi,

I am looking into doing dynamic form generation from xml documents. I know I will have to validate xml forms based on the associated xml schemas. I was wondering if there's a perl module available that does it.

I am using ActivePerl 5.8 on Windows. There's XML::Validator::Schema module available via PPM. I tried it, but it doesn't have any support for namespaces in the current version and I do need the namespace support. There's XML::Xerces available for Perl on Unix/Linux systems that fully supports the XML Schema standard, but it is not available as a package for ActivePerl.

What are my choices, do I have to get the source code for XML::Xerces and compile it for my Windows system? I don't have any experience doing that and I wonder how hard it would be to do. If it were easy, someone would have already ported it to Windows. I looked online and it seems like an ancient version of XML::Xerces (1.5) had been ported to Windows, but I can't seem to find any perl package repository that has it.

Any advice would be appreciated!

Alex

Replies are listed 'Best First'.
Re: XML Validation from ActivePerl
by samtregar (Abbot) on Oct 31, 2003 at 19:09 UTC
    Perhaps you would consider adding namespace support to XML::Validator::Schema. I don't understand XML namespaces well enough to do it myself, but if you need it then maybe you do!

    Another option for you would be to look into using the MSXML DLLs that come with IE. There are various methods of making DLL calls from Perl on Windows and I'm pretty sure MSXML does schema validation.

    -sam