[jdom-interest] Jdom AddChild

Jason Hunter jhunter at collab.net
Fri Apr 6 09:47:25 PDT 2001


"Simphoukham, Southin" wrote:
> 
> Hi,
> 
> I am new to using Jdom so I am using the Java and XML by O'Reilly as a
> guide.   I am working on creating an XML file from scratch page 369.  

See the JDOM faq at jdom.org and look for discussion about the book
being out of date.

> What
> happened to the Element.addChild method?  I assume it is depreciated.  How
> can I add a child element?  Any examples would be great.

The method you want is addContent().

-jh-



More information about the jdom-interest mailing list