Hi - I have just begun learning XML and am flailing around a bit - apologies if this is a stupid question, but when you are a beginner, all questions are important...
I have been running into this problem with using entities. When I open the xml below in a browser (Firefox 1.0.2 or Mozilla 1.7.7)
I get an error message "XML Parsing Error: undefined entity".
When I look at it in the "browser view" of XML spy, it looks OK.
Can someone explain to me why this is?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE contract [
<!ELEMENT contract (para1, para2)>
<!ELEMENT para1 (#PCDATA)>
<!ELEMENT para2 (#PCDATA)>
<!ATTLIST para2
section CDATA #REQUIRED >
<!ENTITY buyer "Masha du Toit">
]>
<contract>
<para1> &buyer; agrees to buy the property defined below
</para1>
<para2 section="1">&buyer; will take title of the real property if &buyer; agrees to this
</para2>
</contract>
I have been running into this problem with using entities. When I open the xml below in a browser (Firefox 1.0.2 or Mozilla 1.7.7)
I get an error message "XML Parsing Error: undefined entity".
When I look at it in the "browser view" of XML spy, it looks OK.
Can someone explain to me why this is?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE contract [
<!ELEMENT contract (para1, para2)>
<!ELEMENT para1 (#PCDATA)>
<!ELEMENT para2 (#PCDATA)>
<!ATTLIST para2
section CDATA #REQUIRED >
<!ENTITY buyer "Masha du Toit">
]>
<contract>
<para1> &buyer; agrees to buy the property defined below
</para1>
<para2 section="1">&buyer; will take title of the real property if &buyer; agrees to this
</para2>
</contract>