public class XMLUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Document |
createNewDocument() |
static NodeList |
evaluateExpressionForItem(Object item,
String expression) |
static Document |
readXML(File xmlFile) |
static Stream<Node> |
stream(NodeList nodeList) |
static void |
writeXML(Document document,
File xmlFile) |
public static Document createNewDocument() throws ParserConfigurationException
ParserConfigurationExceptionpublic static Document readXML(File xmlFile) throws ParserConfigurationException, IOException, SAXException
public static void writeXML(Document document, File xmlFile) throws TransformerException
TransformerExceptionpublic static NodeList evaluateExpressionForItem(Object item, String expression) throws XPathExpressionException
XPathExpressionExceptionCopyright © 2024. All rights reserved.