<div>My outputter looks like this</div>
<div>&nbsp;</div>
<div>
<p>public String convertDocumentToString(Document doc) {<br>&nbsp;&nbsp;&nbsp; String stringDocument;</p>
<p>&nbsp;&nbsp;&nbsp; XMLOutputter outputter = new XMLOutputter();<br>&nbsp;&nbsp;&nbsp; stringDocument = outputter.outputString(doc.getRootElement());</p>
<p>&nbsp;&nbsp;&nbsp; return stringDocument;<br>&nbsp; }</p>Can I specify it to remove empty lines??<br><br>&nbsp;</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">JDOM works exactly as it is supposed to.<br><br>You have &quot;text&quot; between &lt;Orange/&gt; and &lt;Green/&gt; even if it contains only
<br>whitespaces and newlines.<br><br>Which format have you used for the Outputter?<br><br>Søren Faltz wrote:<br>&gt; Document before<br>&gt;<br>&gt; &lt;xml&gt;<br>&gt;&nbsp;&nbsp; &lt;type&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Orange/&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Green/&gt;
<br>&gt;&nbsp;&nbsp; &lt;/type&gt;<br>&gt; &lt;/xml&gt;<br>&gt;<br>&gt; I then call objElementType.removeChild(&quot;Green&quot;);<br>&gt;<br>&gt; and my xml looks like this<br>&gt;<br>&gt; &lt;xml&gt;<br>&gt;&nbsp;&nbsp; &lt;type&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Orange/&gt;
<br>&gt;<br>&gt;&nbsp;&nbsp; &lt;/type&gt;<br>&gt; &lt;/xml&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; but i want it to look like this<br>&gt;<br>&gt; &lt;xml&gt;<br>&gt;&nbsp;&nbsp; &lt;type&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Orange/&gt;<br>&gt;&nbsp;&nbsp; &lt;/type&gt;<br>
&gt; &lt;/xml&gt;<br>&gt;<br>&gt; 2006/12/12, Victor Toni &lt;<a href="mailto:victor.toni@ebuconnect.de">victor.toni@ebuconnect.de</a><br>&gt; &lt;mailto:<a href="mailto:victor.toni@ebuconnect.de">victor.toni@ebuconnect.de
</a>&gt;&gt;:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Søren Faltz wrote:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; When I use the removechild method, an empty line occurs in the Jdom<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; document, how do I avoid this empty line???<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Providing a simply test case might prove useful.
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Kindest regards,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Victor<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>
&gt; To control your jdom-interest membership:<br>&gt; <a href="http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com">http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com</a><br></blockquote>
</div><br>