[jdom-interest] addChild()
philip.nelson at omniresources.com
philip.nelson at omniresources.com
Mon Sep 17 16:54:06 PDT 2001
> I'm sorry, but I can't figure this out....
>
> I was writing some code to create a DOM tree using JDOM
> (based on the sample code from Brett's "Java and XML" book),
> and when I tried to compile it, I found out that there is
> no addChild() method in Element!
>
> Although it is used throughout the book, and it is in the
> reference appendix, it is not there in JDOM documentation
> (downloaded ver. b7).
>
> How are we supposed to add children "under" an element?
step one - "upgrade" your version of the book to the second edition. The
first edition is pretty far out of sync with the code
step two - change references to addChild to addContent
step three - have fun.
More information about the jdom-interest
mailing list