|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.archive.util.XmlUtils
public class XmlUtils
XML utilities for document/xpath actions.
Field Summary | |
---|---|
static java.util.logging.Logger |
logger
|
Constructor Summary | |
---|---|
XmlUtils()
|
Method Summary | |
---|---|
static org.w3c.dom.Document |
getDocument(java.io.File f)
Parse a DOM Document from the given XML file. |
static java.lang.String |
xpathOrNull(org.w3c.dom.Document doc,
java.lang.String xp)
Evaluate an XPath against a Document, returning a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.logging.Logger logger
Constructor Detail |
---|
public XmlUtils()
Method Detail |
---|
public static org.w3c.dom.Document getDocument(java.io.File f) throws java.io.IOException
f
- File to parse as Document
java.io.IOException
public static java.lang.String xpathOrNull(org.w3c.dom.Document doc, java.lang.String xp)
doc
- Documentxp
- XPath to evaluate against Document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |