[jdom-interest] adding EntityRef to Document throws Exception
Quinten Verheyen
q.verheyen at ringring.be
Thu Sep 9 08:28:57 PDT 2004
Whoops, I confused it, in that case I see one alternative : adding the entity delcaration in the the system ID of the doctype, correct me if necessary ;)
-----Original Message-----
From: Elliotte Harold [mailto:elharo at metalab.unc.edu]
Sent: 09 September 2004 17:09
To: Quinten Verheyen; jdom-interest at jdom.org
Subject: Re: [jdom-interest] adding EntityRef to Document throws
Exception
Quinten Verheyen wrote:
> Hi,
>
> I wonder how one adds an entity to a document type, I want something
> like this :
>
> <!DOCTYPE blabla SYSTEM "first.DTD" [<!ENTITY % extension SYSTEM
> "second.dtd"> %extension; ]>
>
> I didn't find any method in DocType who could do the job, so I assumed
> /Document.addContent(Content content)/ (the class EntityRef extends
> Content) would be the thing to use :
>
No. An entity reference is not an entity declaration. JDOM doesn't
really expose any API for modifying the internal DTD subset.
--
Elliotte
More information about the jdom-interest
mailing list