Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Mark Newsgroups: comp.lang.java.programmer Subject: Re: Line wrapping Date: Wed, 18 Jan 2012 16:04:37 +0000 Lines: 23 Message-ID: References: Reply-To: y5ojlnx02@sneakemail.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net 3OFqtednH8iCD4dxLEnteQ/oG1ew3718id/MBgGuToaYIjD64p Cancel-Lock: sha1:eEyabNkgt+6T51ASRPAgGJPNRrA= X-Newsreader: Forte Agent 3.3/32.846 User-Agent: Hamster/2.1.0.11 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11466 On Wed, 18 Jan 2012 09:51:12 -0500, Jeff Higgins wrote: >On 01/18/2012 08:20 AM, Mark wrote: >> I need to write some code to wrap lines for printing. The data to >> print is XML. I have not found that the classes that I have found >> allow you to choose which characters are used as line breaks. >> For example org.apache.xml.serialize.OutputFormat does not do this. > >This may be of interest. > I've tried this code but it presents the whole XML document all in one line. I am trying to get some nicely formatted output for sending to a printer. The code snippet I posted nearly does this, except for the line wrapping. -- (\__/) M. (='.'=) Due to the amount of spam posted via googlegroups and (")_(") their inaction to the problem. I am blocking some articles posted from there. If you wish your postings to be seen by everyone you will need use a different method of posting.