Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] serializer.breakLine

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT ibiblio.org>
  • To: Dave Pawson <dave.pawson AT gmail.com>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] serializer.breakLine
  • Date: Tue, 16 Jun 2009 07:55:50 -0700

On Tue, Jun 16, 2009 at 7:37 AM, Dave Pawson<dave.pawson AT gmail.com> wrote:
> http://www.xom.nu/apidocs/nu/xom/Serializer.html documents breakLine
> method.
>
> Compile it and I see
>
> [dpawson@marge2 java]$ javac -classpath /myjava/XOM/xom-1.2.1.jar
> xomTest.java
> xomTest.java:75: breakLine() has protected access in nu.xom.Serializer
> serializer.breakLine();
> ^
> 1 error
>
>
>
> How to I get a 'pretty printed' ~XML output please?
>

Just set the various options on the serializer and then pass the
Document object to the write() method. YOu don't need to call break
explicitly.

--
Elliotte Rusty Harold
elharo AT ibiblio.org




Archive powered by MHonArc 2.6.24.

Top of Page