[jdom-interest] How do you create an element from a string

Stein Erik Berget seberget at escenic.com
Thu Aug 22 12:01:19 PDT 2002

kyle koss wrote:

> My problem is I have a string that I would like to turn into an
> element to then add to my XML document. The string is a child element
> converted to a string. Is there any way to do this?

Check the FAQ at http://www.jdom.org/docs/faq.html under the heading
"How do I construct a Document from a String?".

Afterwords you can move elements from here with using the the tip under
"How do I move an Element from one place to another?".
Stein Erik Berget

More information about the jdom-interest mailing list