code: public String getChildElementTextValue(Element parentElement, String elementName) {
  
          try {
              // get the first child element matching the specified name
              Element childElement = (Element)parentElement.selectNodes("./" + elementName).get(0);
              // return the value of the child element
              return childElement.getTextTrim();
          } catch (Exception e) {
              return null;
          }
      }
docs: Returns the value of a child element with a specified name for a given parent element.<p>
  
  @param parentElement the parent element
  @param elementName the child element name
  
  @return the value of the child node, or null if something went wrong