public ArrayList<String> GetElementList(String xPathExpression){
  try {
    ArrayList<String> values=new ArrayList<String>();
    List<?> nodeList=XPath.selectNodes(this.xmlDocument,xPathExpression);
    Iterator<?> iter=nodeList.iterator();
    while (iter.hasNext()) {
      org.jdom.Element element=(org.jdom.Element)iter.next();
      values.add(element.getText());
    }
    return values;
  }
 catch (  Exception ex) {
    LOG.error("Error in handler: " + ex.getMessage(),ex);
    return null;
  }
}

public ArrayList < String > GetElementList ( String xPathExpression ) { try { ArrayList < String > values = new ArrayList < String > ( ) ; List < ? > nodeList = XPath . selectNodes ( this . xmlDocument , xPathExpression ) ; Iterator < ? > iter = nodeList . iterator ( ) ; while ( iter . hasNext ( ) ) { org . jdom . Element element = ( org . jdom . Element ) iter . next ( ) ; values . add ( element . getText ( ) ) ; } return values ; } catch ( Exception ex ) { LOG . error ( "Error in handler: " + ex . getMessage ( ) , ex ) ; return null ; } }
retrieves the text elements for a given xpath expression
