public class XMLUtil extends Object
| Constructor and Description |
|---|
XMLUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
docFromFilePath(String documentPath) |
static void |
prettyPrintToFile(File f,
Document doc)
Pretty print a specified XML document to a file.
|
static String |
prettyPrintToString(Document doc)
Pretty print a specified XML document to a string.
|
public static void prettyPrintToFile(File f, Document doc)
f - the File to which the document should be serializeddoc - the XML document to serializepublic static String prettyPrintToString(Document doc)
doc - the XML document to serializeCopyright © 2016 Actian Corporation. All rights reserved.