K
korovev76
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
<?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