[jdom-interest] Avoid linebreak when using org.jdom.Element.RemoveChild

Søren Faltz soren.faltz at gmail.com
Tue Dec 12 03:48:27 PST 2006


Document before

<xml>
  <type>
    <Orange/>
    <Green/>
  </type>
</xml>

I then call objElementType.removeChild("Green");

and my xml looks like this

 <xml>
  <type>
    <Orange/>

  </type>
</xml>



but i want it to look like this

 <xml>
  <type>
    <Orange/>
  </type>
</xml>

2006/12/12, Victor Toni <victor.toni at ebuconnect.de>:
>
> Søren Faltz wrote:
> > When I use the removechild method, an empty line occurs in the Jdom
> > document, how do I avoid this empty line???
>
> Providing a simply test case might prove useful.
>
> Kindest regards,
> Victor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20061212/d4801aeb/attachment.htm


More information about the jdom-interest mailing list