prettyxml
1.2.0

Package dk.hippogrif.prettyxml.app

The application runs with command-line options or presents a graphical user interface when no options are present.

See:
          Description

Class Summary
HTMLDialog Renders an HTML page in a dialog window with hyperlinks and history.
Main A command line application for prettyprinting an xml file.
MainJFrame A GUI application for prettyprinting XML.
 

Package dk.hippogrif.prettyxml.app Description

The application runs with command-line options or presents a graphical user interface when no options are present.

Command-line options

prettyxml accepts the following options from the command-line

option argument meaning
-a   indent attributes
-h   help
-i file input file
-n no no of spaces to indent, default 2
-o file output file
-p file property file holding output format and options
-s   sort attributes on name
-t files an xslt pipeline of one or more stylesheets separated by ";"
-u url input url
-v   print version

If the -p option is used properties are loaded from a file before the remaining options are applied, ie., a command-line option overrides a loaded property.

Properties

A property file may hold the basic properties and the following extra prettyxml properties

prettyxml property value
input input file - standard input is used if no file or url is specified
url input url - standard input is used if no file or url is specified
output output file - standard output is used if no file is specified

Unknown properties are ignored. Properties input and url are exclusive.

GUI

When invoked without command-line options prettyxml presents a GUI for setting properties before execution. The GUI allows for storing and loading properties from a file.


prettyxml
1.2.0

Copyright © 2005 Jesper Goertz. All Rights Reserved.