File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
XML and Related Technologies
XML library that can 'prettify' XML?
Joined: Jun 24, 2003
Jul 24, 2009 03:21:52
I'm looking for a Java/XML lib that can take an XML
and turn it into a nicely indented XML string, e.g.
<foobar> <blah>data</blah> </foobar>
I'll be doing a Google search naturally, but thought I might as well post here since I work here and all that
Cheers, Martijn -
The Well-Grounded Java Developer book!
Joined: Jul 15, 2009
Jul 24, 2009 03:26:27
w3c libraries can do that job, I have used them for outputting simple snippets of HTML.
There was a good tutorial on it, one of the first results on google.
I love this place!
Joined: Mar 22, 2005
Jul 24, 2009 03:31:20
The Xerces library has some pretty-fying serializers in the org.apache.xml.serialize package.
I agree. Here's the link:
subject: XML library that can 'prettify' XML?
backslash n is being escaped against my will
Adding html tags to script
How do you compare a string using this...
Castor: Mapping Element not included in Java Class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015