bd2bowl wrote:
<RECIPE TYPE="soup">
<NAME>Pasta and mushroom soup</NAME>
<TIME>30 min </TIME>
</RECIPE>
OR
<RECIPE TYPE="soup">
<NAME>Pasta and mushroom soup</NAME>
<TIME UNITS=min>30</TIME>
</RECIPE>
Is this SGML or XML? The subject suggests XML, however you have not
quoted the attribute value, so it must be SGML. Did you mean:
<TIME UNITS="min">30</TIME>
The answer to your question depends on the DTD, which you have not
provided. Is this a custom SGML/XML document you are creating or based
on a DTD created by another organisation?
If it's a custom markup language, you can add whatever you like to it.
If it's defined by another organisation with a DTD, you should follow
the rules expressed in it or customise the DTD for your own needs. If
there is no DTD (or Schema), you can add whatever you like (so long as
the document remains well-formed), but you won't be able to check your
document with a validator.
--
Lachlan Hunt
http://lachy.id.au/ http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox