You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Arundhati Bhowmick <ar...@hyperreal.org> on 2000/07/03 19:32:00 UTC

Re: accessing dtd entities within DOM?

After creation of DOMParser set ExpandEntityReferences flag to true via
setExpandEntityReferences function. This will insert entity nodes in the
dom tree and you can access them through your DOM_DocumentType object's
getEntities().
Arundhati.

Thomas Norton wrote:

> Hi,
>
> How can I access a DOM_Document's (or DOMParser's?) entities which
> were defined in an external dtd of a valid XML file?
> i.e.
> <?xml version='1.0' encoding='ISO-8859-1' ?>
> <!DOCTYPE MyDoc SYSTEM "myDoc.dtd">
> <MyDoc description = "no description">
> </MyDoc>
>
> I also notice the DOMParser will not parse internal entities.  Is this
> correct?
>
> Thanks in advance for your help.
> - Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org