[jdom-interest] Expanding EntityRef's

Benjamin Broll benjamin.broll at massp.com
Mon Aug 13 02:27:49 PDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I just came across a question in regard to EntityRef objects. How do
you expand an EntityRef to the text it represents if the entity in
the DTD is eg. defined as follows: 

<!ENTITY Pub-Status "This is a pre-release of the specification.">

That is, when a XML document contains the reference to the entity
Pub-Status (&Pub-Status;) and I built the JDOM tree using DOMBuilder,
entities are not automatically expanded (in contrast to SAXBuilder).
So the tree contains the EntityRef objects which I now would like to
convert into their "real meaning".

But as far as I can see in the javadocs, only getting the
public/system id (when they are present) is supported. Why is there
no method for getting the content?

Cheers,

.bbr

-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.3 int

iQA/AwUBO3ePhdmuaPShga5HEQIpfwCghJFNUO8ZLT3eEnD4YfzqpGe7lM0AoPzS
gTHH3y4VgqAtgSuyfc9WlY7X
=zx/c
-----END PGP SIGNATURE-----





More information about the jdom-interest mailing list