Package com.tom_roush.pdfbox.util
Class XMLUtil
- java.lang.Object
-
- com.tom_roush.pdfbox.util.XMLUtil
-
public class XMLUtil extends Object
This class with handle some simple XML operations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetNodeValue(Element node)This will get the text value of an element.static Documentparse(InputStream is)This will parse an XML stream and create a DOM document.
-
-
-
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.
-
-