Adempiere 3.5.2a

org.adempiere.server.rpl
Class XMLHelper

java.lang.Object
  extended by org.adempiere.server.rpl.XMLHelper

public class XMLHelper
extends Object

Utility class which helps with XML processing.

Version:
$Id$
Author:
Trifon Trifonov

Constructor Summary
XMLHelper()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLHelper

public XMLHelper()
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
Throws:
ParserConfigurationException
SAXException
IOException

createDocumentFromString

public static Document createDocumentFromString(String str)
                                         throws ParserConfigurationException,
                                                SAXException,
                                                IOException
Throws:
ParserConfigurationException
SAXException
IOException

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.