JustinEzequiel
Programmer
I get Reference to undefined entity 'foo'
when trying to open this file in MS Word 2003
where example.dtd is
I can however open the following XML in Word
which seems to indicate that Word ignores entity declarations in an external DTD file
so dear helpful people, is there a way I can get the first XML file to open in MS Word 2003?
when trying to open this file in MS Word 2003
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE people_list SYSTEM "example.dtd">
<people_list>
<person>
<name test="&foo;">Fred <></name>
<birthdate>27&foo;2008</birthdate>
<gender>Male"&'</gender>
</person>
</people_list>
where example.dtd is
Code:
<!ELEMENT people_list (person*)>
<!ELEMENT person (name, birthdate?, gender?, socialsecuritynumber?)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT birthdate (#PCDATA)>
<!ELEMENT gender (#PCDATA)>
<!ELEMENT socialsecuritynumber (#PCDATA)>
<!ENTITY foo "&#60;>">
I can however open the following XML in Word
which seems to indicate that Word ignores entity declarations in an external DTD file
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE people_list [
<!ENTITY foo "&#60;>">
]>
<people_list>
<person>
<name test="&foo;">Fred <></name>
<birthdate>27&foo;2008</birthdate>
<gender>Male"&'</gender>
</person>
</people_list>
so dear helpful people, is there a way I can get the first XML file to open in MS Word 2003?