<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6249.1">
<TITLE>Bug Fix Request for XMLOutput</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">The problem I have encountered with XMLOutput can be worked around.&nbsp; I simply find that </FONT>

<BR><FONT SIZE=2 FACE="Arial">it defeats the purpose of one of the class' method... unless I misunderstood the purpose</FONT>

<BR><FONT SIZE=2 FACE="Arial">of the setNewlines(boolean) method.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">My understanding of the method is that no carriage return would be outputted when writing</FONT>

<BR><FONT SIZE=2 FACE="Arial">JDOM elements including xml prologue and doctype.&nbsp; Unfortunately, these 2 items always</FONT>

<BR><FONT SIZE=2 FACE="Arial">had a new line printed after them. The solution that I found to work around this issue was </FONT>

<BR><FONT SIZE=2 FACE="Arial">to set the newline character to be an empty string using XMLOutput.setLineSeparator(&quot;&quot;);</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Looking at the XMLOutput.java file, I personally think that the code for output(Document doc, Writer out)</FONT>

<BR><FONT SIZE=2 FACE="Arial">or actually anywhere that uses&nbsp;&nbsp; &quot;out.write(currentFormat.lineSeparator);&quot; should be changed</FONT>

<BR><FONT SIZE=2 FACE="Arial">to read&nbsp; &quot;newline(out);&quot;.&nbsp; Reason being that newline() checks to see if the currentFormat class</FONT>

<BR><FONT SIZE=2 FACE="Arial">newlines field is set to true in order to output the lineSeperator field value of the currentFormat class.</FONT>

<BR><FONT SIZE=2 FACE="Arial">This way, I could tell XMLOutput to setNewline(false) and no new line would be used to output</FONT>

<BR><FONT SIZE=2 FACE="Arial">the document.</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Tahoma">Eric A. Gravel</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">IT - Internet Development</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">Java Programmer/Analyst</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">305-666-1861 Ext.7315</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">Direct: 305-925-7315</FONT>

<BR><FONT SIZE=2 FACE="Tahoma">Eric.Gravel@IntervalIntl.com</FONT>
</P>


<DIV><P><HR>
****CONFIDENTIALITY NOTE****<BR>This e-mail and any attached documentation is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure. If any reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately. Thank you.
</P></DIV>
</BODY>
</HTML>