473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Validate XML against a set of XSD files, with Python

Do you know an open source lib that can do $subject?

Thanks,

Laszlo

Dec 12 '06 #1
5 2014

Laszlo Nagy wrote:
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

Dec 12 '06 #2
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) :-(
- 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

Dec 13 '06 #3

On Dec 13, 2:28 pm, Laszlo Nagy <gand...@designaproduct.bizwrote:
Fast google query, uncheked, leads to:
- 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 ...
Thank you,

Laszlo
Dec 13 '06 #4
Laszlo Nagy wrote:
> - 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
Dec 14 '06 #5

Stefan Behnel wrote:
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

Dec 15 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: IanT | last post by:
Hi I need help with my approach to validating de-serialized XML received via webservice. Hopefully someone can point me to sources detailing best practice for the following. I agreed a...
1
by: aevans1108 | last post by:
Greetings All If this is the wrong place to post this question, please give me a push in the right direction. Thanks. I know there has to be a simpler way to do this, but this is as simple a...
6
by: LesleyW | last post by:
Hi Apologies if this is a really dumb question, but being new to XML and Schemas, I wonder if giving the namespace for eg xsd or xsi as a website address means that the user has to be online...
3
by: Rushi | last post by:
Hi All, Is it possible to Validate XML against XSD using two different XML files. scenario: There are two different XML file, one file contain element and count information and other one...
0
by: ric_deez | last post by:
Hi there, I have just started looking into using Python to perform some XML processing and I need to ensure that it is capable of validating against a schema file (XSD not DTD!). The research...
2
by: Reid Priedhorsky | last post by:
Hi folks, I have a need to validate XML files against both DTDs and XML Schema from the command line. In an ideal world, I'd be able to do something like: $ python validate.py foo.xml ...
1
by: JoeZ | last post by:
Hi all, I am using XMLValidatingReader to validate an xml instance against the xml schema. Currently the schema has the targetnamespace, but the instance doesn't have a namespace. Can I still...
2
Deathwing
by: Deathwing | last post by:
Hello everyone, I need to find out how or if it is possible to validate an XML document against XSD using Python. I'd like to write a script that would do the validation and return a simple...
0
by: anupam roy | last post by:
Hi, I have created my own XML text editor and using XmlReader to read the xml files I have opened one xml file for editing in the text box editor( i have . Now before saving the file, i want to...
2
by: hrishy | last post by:
Hi Does anybody have a python xample program to validate a xml file against a XSD. regards Hrisy
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.