[Home] [By Thread] [By Date] [Recent Entries]


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

Kevin.Gutch@m... 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.

  • References:
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member