public final class XMLUtil extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
static Document |
parse(InputStream is,
boolean nsAware)
This will parse an XML stream and create a DOM document.
|
public static Document parse(InputStream is) throws IOException
is
- The stream to get the XML from.IOException
- It there is an error creating the dom.public static Document parse(InputStream is, boolean nsAware) throws IOException
is
- The stream to get the XML from.nsAware
- activates namespace awareness of the parserIOException
- It there is an error creating the dom.Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.