prettyxml
1.2.0

Package dk.hippogrif.prettyxml

prettyxml is a free java utility for prettyprinting xml with attribute sorting and indentation.

See:
          Description

Interface Summary
GParentInterface An interface used to callback parent of PropertiesPane when a property changes.
PropertyNames Properties for prettyxml.
 

Class Summary
GTable A table whose preferred size depends on number of rows.
PrettyPrint Prettyprints XML based on JDOM 1.0 according to a set of properties specifying format and options.
PrettyXMLOutputter An extension to JDOM's XMLOutputter providing attribute sorting and indentation.
PropertiesPane A GUI pane for setting prettyxml properties.
TransformsPane A GUI pane for setting the prettyxml transformation property, used by PropertiesPane.
 

Package dk.hippogrif.prettyxml Description

prettyxml is a free java utility for prettyprinting xml with attribute sorting and indentation.

prettyxml is based on JDOM 1.0. The application runs with command-line options or presents a GUI when no options are present.

A plugin for jEdit 4.2 is also available which offers prettyprint and diff of xml files by means of the JDiffPlugin.

prettyxml offers various format options and supports element sorting and node filtering via stylesheet transformations.

Java 1.4 (JRE) or later is required. For logging java.util.logging is used.

For more information please see http://hippogrif.dk/sw/prettyxml

Properties

A property file may hold the following JDOM format and prettyxml options

format property value
encoding string, e.g., UTF-8 (default), ISO-8859-1
expandEmptyElements TRUE | FALSE (default)
indent no of spaces to indent (min 1, max 99) or 0 for no indentation (default)
lineSeparator string, i.e., \r, \n or \r\n (default)
omitDeclaration TRUE | FALSE (default)
omitEncoding TRUE | FALSE (default)
textMode NORMALIZE | TRIM | TRIM_FULL_WHITE | PRESERVE (default)

prettyxml property value
indentAttributes TRUE | FALSE (default)
sortAttributes TRUE | FALSE (default)
transform an xslt pipeline of one or more stylesheets separated by ";" - non-built-in stylesheets are located first as files then as resources on the classpath

Unknown properties are ignored.

Built-in settings and stylesheets

The following settings are built-in The following stylesheet transformations are built-in


prettyxml
1.2.0

Copyright © 2005 Jesper Goertz. All Rights Reserved.