[jdom-interest] Modifying JDOM tree

philip.nelson at omniresources.com philip.nelson at omniresources.com
Wed Mar 28 08:36:05 PST 2001

> Assume i want to add the name  of mailaddress as follows
> 	email.getChild("cc").getChild("name").addContent("my.name")
> Since cc is optional this expression might fail. In that case 
> I would like
> JDOM to create element cc and name as a side effect.

JDOM will not do this for you.  Your code can easily test for these
conditions and do exactly what makes sense for your specific application.  

More information about the jdom-interest mailing list