Re: [xml-dev] Entities

From
Ronald Bourret <>
To
Date
2002-04-09T21:01:54Z
ID
<>
Thread
Re: [xml-dev] Entities
You can place the entity in the internal subset -- that part of the DTD
which is in the XML document itself. For example:

   <!DOCTYPE MyDocType SYSTEM 'mydtd.dtd' [
      <!ENTITY FirstName 'Kevin'>
   ]>
   <MyDocType>...</MyDocType>

Of course, the obvious disadvantage of this is that it needs to be
repeated in every XML document, but it's better than nothing.

-- Ron

 wrote:
> 
> I have an existing DTD which I can not really alter at this time. However,
> I would like to include an entity in my DTD. I believe these are usually
> defined within the DTD but this is not really an option right now. Is it
> possible to  still include an entity in my XML? The entity would be used
> for repetitive entries into the XML.