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.pdfbox.util
Class XMLUtil

    java.lang.Object
      org.pdfbox.util.XMLUtil

public class XMLUtil
extends Object

This class with handle some simple XML operations.

Version:
  $Revision: 1.2 $
Author:
  blitchfield

Method Summary
`static String` | `getNodeValue(Element node)` This will get the text value of an element.
`static Document` | `parse(InputStream is)` This will parse an XML stream and create a DOM document.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### parse

    public static Document parse(InputStream is)
                          throws IOException

  This will parse an XML stream and create a DOM document.

  Parameters:
    `is` - The stream to get the XML from.
  Returns:
    The DOM document.
  Throws:
    `IOException` - It there is an error creating the dom.

### getNodeValue

    public static String getNodeValue(Element node)

  This will get the text value of an element.

  Parameters:
    `node` - The node to get the text value for.
  Returns:
    The text of the node.

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