Root element name not declared

korovev76 at korovev76 at
Tue Oct 23 20:29:17 CEST 2007

Hi guys, i'm using pyrxp to parse some xml like this one:

<?xml version="1.0"?>
<!DOCTYPE MyMessage SYSTEM "mymessage.dtd">
<MyMessage release="2.0">

where the dtd is defined like this:

<!ENTITY % UsingLocalNames "IGNORE" >
<!ENTITY % MyMessage                  "">
<!ENTITY % FieldA                      "">
<!ENTITY % FieldB                      "">

While parsing, I receive an error like this one: Root element name
MyMessage not declared....
Being both the file and the dtd provided by the supplier, I believe
they're correct so I don't understand what's wrong. MyMessage IS
declared... isn't it sufficient?


More information about the Python-list mailing list