xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- 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
-
[XOM-interest] serializer.breakLine,
Dave Pawson, 06/16/2009
-
Re: [XOM-interest] serializer.breakLine,
Elliotte Harold, 06/16/2009
-
Message not available
-
Re: [XOM-interest] serializer.breakLine,
Elliotte Harold, 06/16/2009
- Re: [XOM-interest] serializer.breakLine, Dave Pawson, 06/16/2009
-
Re: [XOM-interest] serializer.breakLine,
Elliotte Harold, 06/16/2009
-
Message not available
-
Re: [XOM-interest] serializer.breakLine,
Elliotte Harold, 06/16/2009
Archive powered by MHonArc 2.6.24.