Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

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

Søren Faltz

2006-12-12

Replies:

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@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

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.