public class XmlUtil extends Object
| Constructor and Description |
|---|
XmlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ListVariable |
createListOfXmlNodes(net.sf.saxon.query.XQueryExpression exp,
net.sf.saxon.query.DynamicQueryContext dynamicContext)
Creates list variable of resulting XML nodes.
|
static ListVariable |
evaluateXPath(String xpath,
String xml,
RuntimeConfig runtimeConfig)
Evaluates specified XPath expression against given XML text and using given runtime configuration.
|
static void |
prettyPrintXml(Document doc,
Writer writer) |
static String |
prettyPrintXml(String xmlAsString) |
public static void prettyPrintXml(Document doc, Writer writer) throws IOException
IOExceptionpublic static String prettyPrintXml(String xmlAsString) throws IOException, ParserConfigurationException, SAXException
public static ListVariable evaluateXPath(String xpath, String xml, RuntimeConfig runtimeConfig) throws net.sf.saxon.trans.XPathException
xpath - xml - runtimeConfig - net.sf.saxon.trans.XPathExceptionpublic static ListVariable createListOfXmlNodes(net.sf.saxon.query.XQueryExpression exp, net.sf.saxon.query.DynamicQueryContext dynamicContext) throws net.sf.saxon.trans.XPathException
exp - dynamicContext - net.sf.saxon.trans.XPathExceptionCopyright © 2022 WSO2. All rights reserved.