<div>Document before</div>
<div>&nbsp;</div>
<div>&lt;xml&gt;</div>
<div>&nbsp; &lt;type&gt;</div>
<div>&nbsp;&nbsp;&nbsp; &lt;Orange/&gt;</div>
<div>&nbsp;&nbsp;&nbsp; &lt;Green/&gt;</div>
<div>&nbsp; &lt;/type&gt;</div>
<div>&lt;/xml&gt;<br>&nbsp;</div>
<div>I then call objElementType.removeChild(&quot;Green&quot;);</div>
<div>&nbsp;</div>
<div>and my xml looks like this</div>
<div>&nbsp;</div>
<div>
<div>&lt;xml&gt;</div>
<div>&nbsp; &lt;type&gt;</div>
<div>&nbsp;&nbsp;&nbsp; &lt;Orange/&gt;</div>
<div>&nbsp;</div>
<div>&nbsp; &lt;/type&gt;</div>
<div>&lt;/xml&gt;<br>&nbsp;</div><br>&nbsp;</div>
<div>but i want it to look like this</div>
<div>&nbsp;</div>
<div>
<div>&lt;xml&gt;</div>
<div>&nbsp; &lt;type&gt;</div>
<div>&nbsp;&nbsp;&nbsp; &lt;Orange/&gt;</div>
<div>&nbsp; &lt;/type&gt;</div>
<div>&lt;/xml&gt;<br>&nbsp;</div></div>
<div><span class="gmail_quote">2006/12/12, Victor Toni &lt;<a href="mailto:victor.toni@ebuconnect.de">victor.toni@ebuconnect.de</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Søren Faltz wrote:<br>&gt; When I use the removechild method, an empty line occurs in the Jdom<br>&gt; document, how do I avoid this empty line???
<br><br>Providing a simply test case might prove useful.<br><br>Kindest regards,<br>Victor<br></blockquote></div><br>