[jdom-interest] Snippets

Jason Hunter jhunter at collab.net
Wed Jun 13 13:48:40 PDT 2001

Eric Rosenberg wrote:
> Currently I'm creating a StringWriter and passing that to a SAXBuilder,
> getting the root element from the resulting document and calling
> clone(). I figure there has to be a better way.

Just detach() the root, no need to call clone.  You will need a parser
involved though, because you're parsing.  :-)


More information about the jdom-interest mailing list