public final class XmlUtil extends Object
org.xml.| Modifier and Type | Method and Description |
|---|---|
static Locator |
getLocation(Node node) |
static Iterable<Node> |
iterable(NodeList nodeList) |
static Document |
parse(DocumentBuilder documentBuilder,
File inputFile,
String encoding)
A drop-in replacement for
DocumentBuilder.parse(File), where each node of the parsed DOM contains
location information. |
static Document |
parse(DocumentBuilder documentBuilder,
InputSource inputSource)
A drop-in replacement for
DocumentBuilder.parse(InputSource), where each node of the parsed DOM contains
location information. |
static String |
toString(Node node)
The "
toString()" method of class Node does not produce very impressing results; this methods
is a plug-in substitute. |
public static Document parse(DocumentBuilder documentBuilder, File inputFile, @Nullable String encoding) throws ParserConfigurationException, SAXException, TransformerException, IOException
DocumentBuilder.parse(File), where each node of the parsed DOM contains
location information.ParserConfigurationExceptionSAXExceptionTransformerExceptionIOExceptiongetLocation(Node)public static Document parse(DocumentBuilder documentBuilder, InputSource inputSource) throws ParserConfigurationException, SAXException, TransformerException, IOException
DocumentBuilder.parse(InputSource), where each node of the parsed DOM contains
location information.ParserConfigurationExceptionSAXExceptionTransformerExceptionIOExceptiongetLocation(Node)@Nullable public static Locator getLocation(Node node)
public static String toString(Node node)
toString()" method of class Node does not produce very impressing results; this methods
is a plug-in substitute.Copyright © 2018 Arno Unkrig. All rights reserved.