473,804 Members | 3,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Validating XML parsers

A few days ago there was a discussion about which XML parser to use with
Python.
However, the discussion didn't cover validating parsers, at least, not
w3.org XML Schemas.

I looked into all the parsers that came up in the discussion but found no
mention of w3.org schemas.

It seems there are a few DTD validating parsers but that's all.

I'm not concerned about speed so much as a reasonably sound implementation.

What's out there? Have I missed something?

Thanks.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk

Sep 19 '05 #1
2 1488
Dale Strickland-Clark wrote:
A few days ago there was a discussion about which XML parser to use with
Python.
However, the discussion didn't cover validating parsers, at least, not
w3.org XML Schemas.

I looked into all the parsers that came up in the discussion but found no
mention of w3.org schemas.


Apparently not all that came up.

http://codespeak.net/lxml/

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Sep 19 '05 #2
Robert Kern wrote:
Dale Strickland-Clark wrote:
A few days ago there was a discussion about which XML parser to use with
Python.
However, the discussion didn't cover validating parsers, at least, not
w3.org XML Schemas.

I looked into all the parsers that came up in the discussion but found no
mention of w3.org schemas.


Apparently not all that came up.

http://codespeak.net/lxml/

That's great. Thanks.
--
Dale Strickland-Clark
Riverhall Systems - www.riverhall.co.uk

Sep 20 '05 #3

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

Similar topics

0
4275
by: bugbear | last post by:
Subject pretty much says it all. I'd like to parse XML (duh!) using Xerces (because its fast, and reliable, and comprehensive, and supports lots of features). I'd like to conform to standards as much as possible, so I'd like to call Xerces under the JAXP API. I'd like to validate the XML against a DTD, so that errors are flagged up to the user, and I can transcribe
1
1492
by: Charles Fineman | last post by:
I realize there are issues with the cached schema getting stale but I would like to know if any (many? most?) of the XML parsers out there cache a representation of the schema (or DTD) rather than retrieving and parsing it every time.
1
4283
by: scorpion | last post by:
I have this problem that an xml instance is validated correctly by xml tools, but not with my simple code, by setting the validating flag to true. --------------- Schema ----------------------------- <?xml version="1.0" encoding="UTF-8"?> <xs:schema elementFormDefault="qualified" xml:lang="EN" targetNamespace="http://www.mydomain.com/demo/Test" xmlns:test="http://www.mydomain.com/demo/Test" xmlns:xs="http://www.w3.org/2001/XMLSchema">
2
3962
by: Cigdem | last post by:
Hello, I am trying to parse the XML files that the user selects(XML files are on anoher OS400 system called "wkdis3"). But i am permenantly getting that error: Directory0: \\wkdis3\ROOT\home Canonicalpath-Directory4: \\wkdis3\ROOT\home\bwe\ You selected the file named AAA.XML getXmlAlgorithmDocument(): IOException Not logged in
0
1309
by: jean-gert nesselbosch | last post by:
hello everybody, does anybody know of standardization efforts concerning the output of w3cSchema/relaxNG-validating parsers ? I use libxml2 for validation-purposes (w3c-Schema and relaxNG) and have the impression that (a) the output in case the xml-document is not valid, is not very verbose (b) the structure of the returned message (in case of the xml-document
2
3744
by: dwelch91 | last post by:
Hi, c.l.p.'ers- I am having a problem with the import of xml.parsers.expat that has gotten me completely stumped. I have two programs, one a PyQt program and one a command line (text) program that both eventually call the same code that imports xml.parsers.expat. Both give me different results... The code that gets called is (print statements have been added for debugging):
0
1806
by: Lucilue2003 | last post by:
Hello, I need help validating an xml file against an external DTD. The below code allows me to read the xml file and gather specific elements of interest. If the xml looked like this, How would i validate it ? <?xml version='1.0' encoding='utf-8'> <simpsons type='bank' platform='TV' app-version='1.0.0'> <header>
4
7804
by: jack | last post by:
Hi. My project requires to upload the excel file and populate it into the database. By doing so it should also check whether the excel file selected is in the right format. for example if the file contains the Name , Address and Age fields. Then the Name , Address column should accept all characters while the age column should accept only numbers
0
3382
by: JosAH | last post by:
Greetings, this week's article part discusses the parsers used for our little language. We will implement the parsers according to the grammar rules we defined in the second part of this article. As you will see shortly, the implementation of the parsers is an almost one-to-one translation of those grammar rules. Recursive descent parsing The grammar rules are highly recursive, i.e. one rule mentions another rule
0
9569
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10318
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7608
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.