Root element name not declared
korovev76 at gmail.com
korovev76 at gmail.com
Tue Oct 23 14:29:17 EDT 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">
<From>abc</From>
<To>def</To>
.....
where the dtd is defined like this:
<!ENTITY % UsingLocalNames "IGNORE" >
<![%UsingLocalNames;[
<!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?
Thanx
korovev
More information about the Python-list
mailing list