473,396 Members | 1,755 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,396 software developers and data experts.

Need to validate XML against XSD using python

Deathwing
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 PASS or FAIL to notify the user that the XML document either failed or passed the validation? I hope I'm making sense. Thanks very much.
Apr 19 '07 #1
2 3006
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 PASS or FAIL to notify the user that the XML document either failed or passed the validation? I hope I'm making sense. Thanks very much.

first you need to install lxml for python. then follow the following example

http://codespeak.net/lxml/api.html

Regards

Ali
Jul 13 '07 #2
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 PASS or FAIL to notify the user that the XML document either failed or passed the validation? I hope I'm making sense. Thanks very much.

or more specifically
http://codespeak.net/lxml/validation.html

Regards

Ali
Jul 13 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
18
by: Q. John Chen | last post by:
I have Vidation Controls First One: Simple exluce certain special characters: say no a or b or c in the string: * Second One: I required date be entered in "MM/DD/YYYY" format: //+4 How...
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...
2
by: hrishy | last post by:
Hi Does anybody have a python xample program to validate a xml file against a XSD. regards Hrisy
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.