[jdom-interest] Reinitialisation

Gareth Hughes gareth.hughes at steintravel.ie
Fri Aug 20 05:38:12 PDT 2004


Hi, Could anyone tell me how to reinitialise a JDOM Document after an
element has been removed.

 

Here's the code I'm using.

 

Parent p = element.getParent();

p.removeContent(element);

 

 

I've output the XML for visual verification that everything has worked but
it's leaving a blank line in place of the removed element.

I'd like to reinitialise the Document so as there are no unnecessary white
spaces.

 

Thanks..

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://servlets.com/pipermail/jdom-interest/attachments/20040820/60259a26/attachment.htm


More information about the jdom-interest mailing list