[XOM-interest] serializer.breakLine
Elliotte Harold
elharo at ibiblio.org
Tue Jun 16 10:55:50 EDT 2009
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 at 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
More information about the XOM-interest
mailing list