Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] adding EntityRef to Document throws Exception

Elliotte Rusty Harold

2004-09-09

Replies:

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
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.