public class XmlReformatter
extends java.lang.Object
Constructor and Description |
---|
XmlReformatter() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Main function for use as a stand-alone tool.
|
static java.lang.String |
reformat(java.io.File inFile) |
static void |
reformat(java.io.File inFile,
java.io.File outFile) |
static java.lang.String |
reformat(java.lang.String inXml,
java.lang.String context) |
static void |
reformat(TagNode node,
XmlSink xmlSink) |
public static void main(java.lang.String[] args)
args
- Contains one or two elements.
First element is the name of the input file. The second element
is optional. If supplied, it is the name of the output file.public static java.lang.String reformat(java.lang.String inXml, java.lang.String context)
public static java.lang.String reformat(java.io.File inFile)
public static void reformat(java.io.File inFile, java.io.File outFile)