[jdom-interest] Expanding EntityRef's
benjamin.broll at massp.com
Mon Aug 13 02:27:49 PDT 2001
-----BEGIN PGP SIGNED MESSAGE-----
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?
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.3 int
-----END PGP SIGNATURE-----
More information about the jdom-interest