<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana size=2><SPAN class=543013602-16032001>My app requires me
to email a short XML document to a user (inline, not as an attachment). To avoid
getting clipped or wrapped, I need to keep the document skinny (not too many
characters on a line). </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=543013602-16032001></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=543013602-16032001>At the same time,
my elements have a lot of attributes (7), which makes XMLOutputter's output too
wide for my app. </SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=543013602-16032001></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=543013602-16032001>Therefore, I've
hacked XMLOutputter to support optional attribute indenting (encl.). You just
call XMLOutputter.setIndentAttributes(true) (default is false). Thereafter, *if*
newlines are also on, attributes are newlined/indented from their
elements.</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=543013602-16032001></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=543013602-16032001>Code owners:
Please consider folding this into the next release. (The enclosed code started
out as Beta 6.)</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=543013602-16032001></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=543013602-16032001>thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=543013602-16032001></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=543013602-16032001>Adam
Shackleford</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=543013602-16032001><A
href="mailto:approach@yahoo.com">approach@yahoo.com</A></SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=543013602-16032001></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=543013602-16032001>P.S. JDOM is
slick--so much less foolishness than DOM.</SPAN></FONT></DIV></BODY></HTML>