[prev in list] [next in list] [prev in thread] [next in thread]
List: python-xml-sig
Subject: [XML-SIG] XML Schema Validator
From: faassen () infrae ! com (Martijn Faassen)
Date: 2006-06-15 17:00:39
Message-ID: 44919237.1090802 () infrae ! com
[Download RAW message or body]
Mircea Amarascu wrote:
> Hello,
>
> What is the best Python tool for XML Schema validations? I only need a
> True/False response when I check the conformance of an XML document
> with a given schema.
>
> Is there a Python library that fully implements this feature?
There was just a discussion on the list a last week, so I'll just
summarize from that:
Henry Thompson mentioned XSV:
> XSV [1] is written in Python (uses the LT XML low-level XML library).
> [1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html
I mentioned lxml (which I created):
http://codespeak.net/lxml
This explains how to use it with XML Schemas:
http://codespeak.net/lxml/api.html#xmlschema
This requires libxml2 and libxslt (C libraries) to be installed. lxml
implements XML schema only as far as libxml2 implements it -- whether
that's sufficient to your purposes depends.
There's also another Python binding for libxml2 that gets included with
libxml2 itself. It's much less friendly to the Python programmer than
lxml, but you may want to try it if for some reason you cannot use lxml.
Regards,
Martijn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic