Package org.adempiere.process.rpl
Class XMLHelper
java.lang.Object
org.adempiere.process.rpl.XMLHelper
Utility class which helps with XML processing.
- Version:
- $Id$
- Author:
- Trifon Trifonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentcreateDocumentFromFile(String pathToXmlFile) static Documentstatic BooleangetBoolean(String xPathExpression, Node node) static ElementgetElement(String xPathExpression, Node node) static Nodestatic NodeListgetNodeList(String xPathExpression, Node node) static Doublestatic String
-
Constructor Details
-
XMLHelper
public XMLHelper()
-
-
Method Details
-
getElement
- Throws:
XPathExpressionException
-
getNode
- Throws:
XPathExpressionException
-
getNodeList
public static NodeList getNodeList(String xPathExpression, Node node) throws XPathExpressionException - Throws:
XPathExpressionException
-
getNumber
- Throws:
XPathExpressionException
-
getString
- Throws:
XPathExpressionException
-
getBoolean
- Throws:
XPathExpressionException
-
createDocumentFromFile
public static Document createDocumentFromFile(String pathToXmlFile) throws ParserConfigurationException, SAXException, IOException -
createDocumentFromString
public static Document createDocumentFromString(String str) throws ParserConfigurationException, SAXException, IOException
-