J. Pablo Fernández wrote:
> Is ElementTree supposed to load DTDs?
AFAIR, you have to provide entities by hand.
> Or is there another library that would handle DTDs correctly,
> performing entity replacements?
http://codespeak.net/lxml
http://codespeak.net/lxml/parsing.html#parser-options
Stefa
Or is there another library that would handle DTDs correctly,
performing entity replacements?
Thanks.
On May 16, 12:20 am, J. Pablo Fernández <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is ElementTree supposed to load DTDs? I have some xmls heavy on
> entities and it fails this way:
>
> Python 2.5.2
Hello,
Is ElementTree supposed to load DTDs? I have some xmls heavy on
entities and it fails this way:
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> filename = "revo/xml/a.x