public class XMLUtilsServiceImpl extends java.lang.Object implements XMLUtilsService
Constructor and Description |
---|
XMLUtilsServiceImpl(<any> disableValidation) |
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)
Transforms an XML node (from a JAXP XML document) into a formatted string.
|
javax.xml.xpath.XPathExpression |
getXPath(java.lang.String xpath) |
javax.xml.xpath.XPathExpression |
getXPath(java.lang.String xpath,
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)
Reads a file into a JAXP XML document.
|
org.w3c.dom.Document |
readStringIntoJAXPDoc(java.lang.String data,
java.lang.String encoding)
Reads a file into a JAXP XML document.
|
java.lang.String |
xsltTranform(javax.xml.transform.Source xsltSource,
javax.xml.transform.Source xmlSource) |
public org.w3c.dom.Document readInputFileIntoJAXPDoc(java.io.File file) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
readInputFileIntoJAXPDoc
in interface XMLUtilsService
file
- The input file.javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document readStringIntoJAXPDoc(java.lang.String data) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
readStringIntoJAXPDoc
in interface XMLUtilsService
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public 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
readStringIntoJAXPDoc
in interface XMLUtilsService
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document readInputStreamIntoJAXPDoc(java.io.InputStream in) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
readInputStreamIntoJAXPDoc
in interface XMLUtilsService
in
- The input stream.javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document getNewEmptyJAXPDoc()
getNewEmptyJAXPDoc
in interface XMLUtilsService
public java.lang.String getXMLNodeAsString(org.w3c.dom.Node node)
XMLUtilsService
getXMLNodeAsString
in interface XMLUtilsService
node
- The node to transform.public java.lang.String getXMLNodeAsString(org.w3c.dom.Node node, boolean omitXMLDeclaration)
getXMLNodeAsString
in interface XMLUtilsService
node
- The node to transform.public java.lang.String xsltTranform(javax.xml.transform.Source xsltSource, javax.xml.transform.Source xmlSource)
public javax.xml.xpath.XPathExpression getXPath(java.lang.String xpath) throws javax.xml.xpath.XPathException
getXPath
in interface XMLUtilsService
javax.xml.xpath.XPathException
public javax.xml.xpath.XPathExpression getXPath(java.lang.String xpath, javax.xml.namespace.NamespaceContext namespaceContext) throws javax.xml.xpath.XPathException
getXPath
in interface XMLUtilsService
javax.xml.xpath.XPathException