public abstract class XmlDocument extends Object
| Constructor and Description |
|---|
XmlDocument() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addNewlineBeforeFirstElement(File f) |
void |
createDocument(File xmlFile) |
void |
createDocument(String rootElement) |
protected boolean |
isIndented() |
protected boolean |
isWhitespace(Node node) |
void |
writeXMLDocument(File f) |
void |
writeXMLDocument(String fileName) |
protected Document doc
public void createDocument(String rootElement) throws ParserConfigurationException
ParserConfigurationExceptionpublic void createDocument(File xmlFile) throws ParserConfigurationException, SAXException, IOException
public void writeXMLDocument(String fileName) throws IOException, TransformerException
IOExceptionTransformerExceptionpublic void writeXMLDocument(File f) throws IOException, TransformerException
IOExceptionTransformerExceptionprotected boolean isIndented()
protected boolean isWhitespace(Node node)
public static void addNewlineBeforeFirstElement(File f) throws IOException
IOExceptionCopyright © 2022 the original author or authors.