[RESOLVED] I can't validate my code!

webmasterbeta

New Member
I've been going through a tutorial and the following code is provided with a screen print of dreamweaver validating the code okay. However this hasn't been the case with mine, I thought my typed code was riddled with typos so I copy-pasted, still no change.

Example 3.7. internalmemo-standalone.xml

<?xml version="1.0"?>
<!DOCTYPE internalmemo [
ELEMENT internalmemo (header,body)
ELEMENT header (date,sender,recipients,blind-recipients?,
subject)
ELEMENT body (para+,sig)
ELEMENT date (#PCDATA)
ELEMENT sender (#PCDATA)
ELEMENT recipients (#PCDATA)
ELEMENT blind-recipients (#PCDATA)
ELEMENT subject (#PCDATA)
ELEMENT sig (#PCDATA)
ELEMENT para (#PCDATA|b|i)*
ELEMENT b (#PCDATA)
ELEMENT i (#PCDATA)
ATTLIST internalmemo
priority (low|medium|high) #REQUIRED
initials CDATA #REQUIRED
expiredate CDATA #REQUIRED
origin (marketing|accounting|finance|hq|sales|ops) #REQUIRED
]>
<internalmemo priority="high" initials="hjd"
expiredate="01/01/2008" origin="marketing">
<header>
<date>01/05/2004</date>
<sender>Thomas Myer</sender>
<recipients>Marketing Department</recipients>
<subject>Sell more stuff</subject>
</header>
<body>
<para>This is a <i>simple</i> memo from the marketing
department: sell <b>more</b> stuff!</para>
<sig>Thomas Myer</sig>
</body>
</internalmemo>

I'm getting multiple errors on each line of code in the DOCTYPE, its saying "Invalid character in internal subset (Unicode:..." and naturally with the rest of the code all the elements are unknown.

I thought that maybe there was a problem with pasting the text directly from the website so I pasted it in notepad first but that didn't seem to be the problem, I even made this change to the xml declaration;
<?xml version="1.0" encoding="iso-8859-1"?>
No luck.

I'd appreciate any help, I cant figure why dreamweaver wont validate for me.
 
Top