<div>My outputter looks like this</div>
<div> </div>
<div>
<p>public String convertDocumentToString(Document doc) {<br> String stringDocument;</p>
<p> XMLOutputter outputter = new XMLOutputter();<br> stringDocument = outputter.outputString(doc.getRootElement());</p>
<p> return stringDocument;<br> }</p>Can I specify it to remove empty lines??<br><br> </div>
<div><span class="gmail_quote">2006/12/12, Victor Toni <<a href="mailto:victor.toni@ebuconnect.de">victor.toni@ebuconnect.de</a>>:</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 "text" between <Orange/> and <Green/> 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>> Document before<br>><br>> <xml><br>> <type><br>> <Orange/><br>> <Green/>
<br>> </type><br>> </xml><br>><br>> I then call objElementType.removeChild("Green");<br>><br>> and my xml looks like this<br>><br>> <xml><br>> <type><br>> <Orange/>
<br>><br>> </type><br>> </xml><br>><br>><br>><br>> but i want it to look like this<br>><br>> <xml><br>> <type><br>> <Orange/><br>> </type><br>
> </xml><br>><br>> 2006/12/12, Victor Toni <<a href="mailto:victor.toni@ebuconnect.de">victor.toni@ebuconnect.de</a><br>> <mailto:<a href="mailto:victor.toni@ebuconnect.de">victor.toni@ebuconnect.de
</a>>>:<br>><br>> Søren Faltz wrote:<br>> > When I use the removechild method, an empty line occurs in the Jdom<br>> > 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>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>
> To control your jdom-interest membership:<br>> <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>