You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "K. Ari Krupnikov" <ar...@cogsci.ed.ac.uk> on 2001/10/15 16:49:49 UTC

how are entities populated?

Reading through the source of org.apache.xerces.parsers.DOMParser,
v1.4.3, it appears that those (general) entities that are declared in
the DTD but not referenced in the document are not populated, i.e. they
have no children, regardless of the replacement values specified in the
DTD. Entities are only populated when they are referenced and their
replacement values are reported by the underlying streaming parser.

Is this observation correct? Is this the case in Xerces2, too?

I need to be able to hand users an empty document that only has a DTD,
so that when users build their documents, they be able to use entities
(or rather, references to them) as building blocks. Can I do that with
Xerces?

Ari.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org