org.pdfbox.util

Class XMLUtil


public class XMLUtil
extends java.lang.Object

This class with handle some simple XML operations.
Version:
$Revision: 1.3 $
Author:
Ben Litchfield

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.

Method Details

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.

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.