[Tutor] xml.etree.ElementTree.parse() against a XMLShema file

Stefan Behnel stefan_ml at behnel.de
Wed Dec 22 21:56:49 CET 2010

Karim, 22.12.2010 19:28:
> On 12/22/2010 07:07 PM, Karim wrote:
>> Is somebody has an example of the way to parse an xml file against a
>> "grammary" file.xsd.
> I found this:
> http://www.velocityreviews.com/forums/t695106-re-xml-parsing-with-python.html
> Stefan is it still true the limitation of etree in python 2.7.1 ?

Yes, ElementTree (which is in Python's stdlib) and lxml.etree are separate 
implementations. If you want validation, use the lxml package.


More information about the Tutor mailing list