Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.archive.util
Class XmlUtils

    java.lang.Object
      org.archive.util.XmlUtils

    public class XmlUtils

extends java.lang.Object

XML utilities for document/xpath actions.

Version:
  $Revision: 4644 $ $Date: 2006-09-20 22:40:21 +0000 (Wed, 20 Sep 2006) $
Author:
  gojomo

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

### logger

    public static java.util.logging.Logger logger

Constructor Detail

### XmlUtils

    public XmlUtils()

Method Detail

### getDocument

    public static org.w3c.dom.Document getDocument(java.io.File f)
                                            throws java.io.IOException

  Parse a DOM Document from the given XML file.

  Parameters:
    `f` - File to parse as Document
  Returns:
    Document
  Throws:
    `java.io.IOException`

### xpathOrNull

    public static java.lang.String xpathOrNull(org.w3c.dom.Document doc,
                                               java.lang.String xp)

  Evaluate an XPath against a Document, returning a String.

  Parameters:
    `doc` - Document
    `xp` - XPath to evaluate against Document
  Returns:
    String found at path or null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2008 Internet Archive. All Rights Reserved.