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

2010-12-22 Thread Karim
On 12/22/2010 10:32 PM, Stefan Behnel wrote: Karim, 22.12.2010 22:09: Using lxml (except for the different import) will be fully compliant with the ET code. Do I have to adapt it? There are certain differences. http://codespeak.net/lxml/compatibility.html This page hasn't been changed for a

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

2010-12-22 Thread Stefan Behnel
Karim, 22.12.2010 22:09: Using lxml (except for the different import) will be fully compliant with the ET code. Do I have to adapt it? There are certain differences. http://codespeak.net/lxml/compatibility.html This page hasn't been changed for ages, but it should still be mostly accurate.

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

2010-12-22 Thread Karim
Thanks Stefan for answering. That's what I come up with. Using lxml (except for the different import) will be fully compliant with the ET code. Do I have to adapt it? I saw your fantastic benchmarks! Why the hell lxml is not integrated into the stdlib. I thought they put in it things which

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

2010-12-22 Thread Stefan Behnel
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

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

2010-12-22 Thread Karim
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 ? Regar

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

2010-12-22 Thread Karim
Hello all, Is somebody has an example of the way to parse an xml file against a "grammary" file.xsd. The default parser is checking closing tags and attributes but I would like to validate a XSD file. I use the module ElementTree. Regards Karim __