January 4th, 2004, 02:51 AM
Join Date: Jan 2004
Time spent in forums: < 1 sec
Reputation Power: 0
A Quick Primer
Nice explanation of the XML layout, certainly for someone (almost) completely new to the materials...
1. Somewhere, you're telling the following:
The term #PCDATA refers to the "Parsed Character Data," which indicates that an element can contain only text.
This is partly correct, but it tells more: HTML-alike characters will also be listed correctly. And that's an extra information I'm missing in this sentence.
2. Using the CODE tag for your code examples would avoid misreadings of certain characters (especially the "!"
in the code listings).
I find it strange to see <IELEMENT... in stead of <!ELEMENT... in your dtd file.
3. About your DTD. Would it not be better to use the following approach to describe your data type:
// mail. dtd
<!ELEMENT mail EMPTY>
From PCDATA # REQUIRED
To PCDATA # REQUIRED
Cc PCDATA # IMPLIED
Date PCDATA # REQUIRED
Subject PCDATA # REQUIRED
Signature PCDATA # IMPLIED
Don't know if the syntax is completely correct, but I saw something similar in another article and I find it much more clear...