public class XMLNodeUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
print(XMLNode node,
int tab)
Print as a String the content of an XML file under a root Node.
|
static void |
print(XMLNode node,
int tab,
File outputFile)
Save in a File the content of an XML file under a root Node.
|
static void |
print(XMLNode node,
int tab,
File outputFile,
String encoding)
Save in a File the content of an XML file under a root Node.
|
static String |
print(XMLNode node,
int tab,
String encoding)
Print as a String the content of an XML file under a root Node.
|
static void |
print(XMLNode node,
int tab,
URL outputURL)
Save in n URL the content of an XML file under a root Node.
|
public static void print(XMLNode node, int tab, File outputFile) throws IOException
node - the root nodetab - the tabulation for the XML file for each child nodeoutputFile - the output fileIOExceptionpublic static void print(XMLNode node, int tab, File outputFile, String encoding) throws IOException
node - the root nodetab - the tabulation for the XML file for each child nodeoutputFile - the output fileencoding - the encoding (can be null)IOExceptionpublic static void print(XMLNode node, int tab, URL outputURL) throws IOException
node - the root nodetab - the tabulation for the XML file for each child nodeoutputURL - the output URLIOExceptionpublic static String print(XMLNode node, int tab)
node - the root nodetab - the tabulation for the XML file for each child nodeCopyright © 2023. All rights reserved.