|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.netarkivet.common.utils.XmlUtils
public class XmlUtils
Utilities for handling XML-files.
Constructor Summary | |
---|---|
XmlUtils()
|
Method Summary | |
---|---|
static org.dom4j.Document |
getXmlDoc(java.io.File f)
Read and parse an XML-file, and return a Document object representing this object. |
static void |
setNode(org.dom4j.Document doc,
java.lang.String xpath,
java.lang.String value)
Set a XmlNode defined by the given XPath to the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlUtils()
Method Detail |
---|
public static org.dom4j.Document getXmlDoc(java.io.File f) throws IOFailure
f
- a given xml file
IOFailure
- if unable to read the xml-file
or unable to parse the file as XMLpublic static void setNode(org.dom4j.Document doc, java.lang.String xpath, java.lang.String value)
doc
- the Document, which is being modifiedxpath
- the given XPathvalue
- the given value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |