Connecting Tech Pros Worldwide Help | Site Map

Validate XML against a set of XSD files, with Python

Laszlo Nagy
Guest
 
Posts: n/a
#1: Dec 12 '06
Do you know an open source lib that can do $subject?

Thanks,

Laszlo

Sébastien Boisgérault
Guest
 
Posts: n/a
#2: Dec 12 '06

re: Validate XML against a set of XSD files, with Python



Laszlo Nagy wrote:
Quote:
Do you know an open source lib that can do $subject?
Fast google query, uncheked, leads to:

- XSV: http://www.ltg.ed.ac.uk/~ht/xsv-status.html
- libxml : http://codespeak.net/lxml/

Cheers,

SB

Laszlo Nagy
Guest
 
Posts: n/a
#3: Dec 13 '06

re: Validate XML against a set of XSD files, with Python


Quote:
Fast google query, uncheked, leads to:
>
- XSV: http://www.ltg.ed.ac.uk/~ht/xsv-status.html
>
I tried this before. Unfortunately, xsv is not officially supported on
my system (FreeBSD 6.1) :-(
Quote:
- libxml : http://codespeak.net/lxml/
>
Probably this is what I need to use. (However, I see in the mailing
lists that there are problems with this part of libxml2.)

Thank you,

Laszlo



Sébastien Boisgérault
Guest
 
Posts: n/a
#4: Dec 13 '06

re: Validate XML against a set of XSD files, with Python



On Dec 13, 2:28 pm, Laszlo Nagy <gand...@designaproduct.bizwrote:
Quote:
Quote:
Fast google query, uncheked, leads to:
>
Quote:
- XSV:http://www.ltg.ed.ac.uk/~ht/xsv-status.htmlI tried this before. Unfortunately, xsv is not officially supported on
my system (FreeBSD 6.1) :-( - libxml :http://codespeak.net/lxml/Probably this is what I need to use. (However, I see in the mailing
lists that there are problems with this part of libxml2.)
Yep, maybe. I suspect some issues with the validation of Relax NG
documents,
at least with the libxml2 that was used in my lxml build ...
Quote:
Thank you,
>
Laszlo
Stefan Behnel
Guest
 
Posts: n/a
#5: Dec 14 '06

re: Validate XML against a set of XSD files, with Python


Laszlo Nagy wrote:
Quote:
Quote:
> - libxml : http://codespeak.net/lxml/
>>
Probably this is what I need to use. (However, I see in the mailing
lists that there are problems with this part of libxml2.)
XML Schema support in libxml2 is not complete. It should work in most cases,
but I've already stumbled into schemas that just don't work (especially
generated ones).

RelaxNG support in libxml2 is pretty much perfect, BTW.

Stefan
=?iso-8859-1?q?S=E9bastien_Boisg=E9rault?=
Guest
 
Posts: n/a
#6: Dec 15 '06

re: Validate XML against a set of XSD files, with Python



Stefan Behnel wrote:
Quote:
RelaxNG support in libxml2 is pretty much perfect, BTW.
The *potential* issue I mentioned before with Relax NG
validation in libxml2 does *NOT* exist.

I double-checked with Jing and my RelaxNG file was
indeed incorrect ... (the "recursive reference outside
elements" kind of mistake). Jing more detailled
error reports helped ...

Mea Maxima Culpa. Wouldn't like to spread FUD :)

Cheers

SB

Closed Thread