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
ParserConfigurationException
public static Document readXML(File xmlFile) throws ParserConfigurationException, IOException, SAXException
public static void writeXML(Document document, File xmlFile) throws TransformerException
TransformerException
public static NodeList evaluateExpressionForItem(Object item, String expression) throws XPathExpressionException
XPathExpressionException
Copyright © 2021. All rights reserved.