public interface XMLUtilsService
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
getNewEmptyJAXPDoc()
Creates an empty JAXP XML document.
|
java.lang.String |
getXMLNodeAsString(org.w3c.dom.Node node)
Transforms an XML node (from a JAXP XML document) into a formatted string.
|
java.lang.String |
getXMLNodeAsString(org.w3c.dom.Node node,
boolean omitXMLDeclaration) |
javax.xml.xpath.XPathExpression |
getXPath(java.lang.String string) |
javax.xml.xpath.XPathExpression |
getXPath(java.lang.String string,
javax.xml.namespace.NamespaceContext namespaceContext) |
org.w3c.dom.Document |
readInputFileIntoJAXPDoc(java.io.File file)
Reads a file into a JAXP XML document.
|
org.w3c.dom.Document |
readInputStreamIntoJAXPDoc(java.io.InputStream in)
Reads an InputStream into a JAXP XML document.
|
org.w3c.dom.Document |
readStringIntoJAXPDoc(java.lang.String data) |
org.w3c.dom.Document |
readStringIntoJAXPDoc(java.lang.String data,
java.lang.String encoding) |
org.w3c.dom.Document readStringIntoJAXPDoc(java.lang.String data) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
org.w3c.dom.Document readStringIntoJAXPDoc(java.lang.String data, java.lang.String encoding) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
org.w3c.dom.Document readInputFileIntoJAXPDoc(java.io.File file) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
file
- The input file.javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
org.w3c.dom.Document readInputStreamIntoJAXPDoc(java.io.InputStream in) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
in
- The input stream.javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
org.w3c.dom.Document getNewEmptyJAXPDoc()
java.lang.String getXMLNodeAsString(org.w3c.dom.Node node)
node
- The node to transform.java.lang.String getXMLNodeAsString(org.w3c.dom.Node node, boolean omitXMLDeclaration)
javax.xml.xpath.XPathExpression getXPath(java.lang.String string) throws javax.xml.xpath.XPathException
javax.xml.xpath.XPathException
javax.xml.xpath.XPathExpression getXPath(java.lang.String string, javax.xml.namespace.NamespaceContext namespaceContext) throws javax.xml.xpath.XPathException
javax.xml.xpath.XPathException