Package org.adempiere.process.rpl
Class XMLHelper
- java.lang.Object
-
- org.adempiere.process.rpl.XMLHelper
-
public class XMLHelper extends Object
Utility class which helps with XML processing.- Version:
- $Id$
- Author:
- Trifon Trifonov
-
-
Constructor Summary
Constructors Constructor Description XMLHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Document
createDocumentFromFile(String pathToXmlFile)
static Document
createDocumentFromString(String str)
static Boolean
getBoolean(String xPathExpression, Node node)
static Element
getElement(String xPathExpression, Node node)
static Node
getNode(String xPathExpression, Node node)
static NodeList
getNodeList(String xPathExpression, Node node)
static Double
getNumber(String xPathExpression, Node node)
static String
getString(String xPathExpression, Node node)
-
-
-
Method Detail
-
getElement
public static Element getElement(String xPathExpression, Node node) throws XPathExpressionException
- Throws:
XPathExpressionException
-
getNode
public static Node getNode(String xPathExpression, Node node) throws XPathExpressionException
- Throws:
XPathExpressionException
-
getNodeList
public static NodeList getNodeList(String xPathExpression, Node node) throws XPathExpressionException
- Throws:
XPathExpressionException
-
getNumber
public static Double getNumber(String xPathExpression, Node node) throws XPathExpressionException
- Throws:
XPathExpressionException
-
getString
public static String getString(String xPathExpression, Node node) throws XPathExpressionException
- Throws:
XPathExpressionException
-
getBoolean
public static Boolean getBoolean(String xPathExpression, Node node) throws XPathExpressionException
- Throws:
XPathExpressionException
-
createDocumentFromFile
public static Document createDocumentFromFile(String pathToXmlFile) throws ParserConfigurationException, SAXException, IOException
-
createDocumentFromString
public static Document createDocumentFromString(String str) throws ParserConfigurationException, SAXException, IOException
-
-