[XML-SIG] Schema validation

Matt Patterson list-matt at reprocessed.org
Fri Jan 9 13:26:26 EST 2004


On 9 Jan 2004, at 03:16, Thomas B. Passin wrote:

> Andrew Clover wrote:
>
>> Matt Patterson <list-matt at reprocessed.org> wrote:
>>> Is there a validating parser with Python wrappers that can use 
>>> Schemas to validate
>> (More awkward silence.)

Ah.

>> IOW: not that I know of. There is XSV, which is written in Python -
>>   http://www.ltg.ed.ac.uk/~ht/xsv-status.html
>> But it's a validator application (built on top of the LTXML parser and
>> PyLTXML bindings) rather than a parser in itself; it doesn't give you 
>> a
>> DOM or SAX output, but there's nothing stopping you running it as a
>> pre-parse step.

I seem to remember running into problems with XSV / Xerces not agreeing 
on validity: The schema I'm having to use has a lot of type 
constraints, and the production system which processes the XML files 
which I'm building a simple tester for (I'm working on the system which 
produces the XML in the first place, not the end storage and processing 
system - that's a different company (and project)) uses Xerces to 
validate our XML before it will process it.

> Or you could use Jython and run Xerxes.  Also, Pirxx wraps Xerxes-C 
> for Python, and this ought to let you to XML Schema validation (though 
> I do not know for sure) -

At first sight Pirxx doesn't seem to have the right hooks, but Jython 
seems like a good prospect. I think for the moment I'll just continue 
to invoke a Xerces sample app which validates...

Thanks,

Matt


-- 
    Matt Patterson | Typographer
    <matt at emdash.co.uk> | http://www.emdash.co.uk/
    <matt at reprocessed.org> | http://reprocessed.org/




More information about the XML-SIG mailing list