|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jomic.tools.XmlTools
public final class XmlTools
Various utility methods to simplify processing XML data.
Method Summary | |
---|---|
org.w3c.dom.Document |
createEmptyDocument(java.lang.String rootElementName)
Create new XML document. |
static XmlTools |
instance()
|
void |
prettyPrint(java.io.File xmlFile)
Pretty print xmlFile , replacing the original. |
void |
write(org.w3c.dom.Document document,
java.io.Writer writer)
Write document to writer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XmlTools instance()
public org.w3c.dom.Document createEmptyDocument(java.lang.String rootElementName)
rootElementName
- name of the root element to add, or null
if the
document should not have any root just yetpublic void prettyPrint(java.io.File xmlFile) throws java.io.IOException, org.xml.sax.SAXException
xmlFile
, replacing the original.
java.io.IOException
org.xml.sax.SAXException
public void write(org.w3c.dom.Document document, java.io.Writer writer) throws java.io.IOException
document
to writer
.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |