Johannes Koch said the following on 11/22/2005 14:08 +0200:
In article <11**********************@z14g2000cwz.googlegroups .com>,
<lu**********@yahoo.com> wrote:
I try to make a DTD for a structure like this:
<notelist>
<note><to>john</to><subj>i have a question</subj></note>
<note>my pin code is 1111</note>
</notelist>
Richard Tobin wrote:
You can't do that in a DTD. The best you can do is allow any mixture
of <to>, <subj>, and text.
Or use two different elements:
<structuredNote><to>john</to><subj>i have a
question</subj></structuredNote>
<note>my pin code is 1111</note>
Or eliminate one "note" element (I renamed some elements, it made more
sence to me that way, YMMV).
<note>
<to>john</to>
<subj>i have a question</subj>
<text>my pin code is 1111</text>
</note>
--
Regards
Harrie