code: static String getChildElementText(Element parent, String name) {
          // Get children
          List list = DomUtils.getChildElementsByName(parent, name);
  
          if (list.size() == 1) {
              Element child = (Element) list.get(0);
  
              StringBuffer buf = new StringBuffer();
  
              NodeList children = child.getChildNodes();
              for (int i = 0; i < children.getLength(); i++) {
                  Node node = children.item(i);
                  if (node.getNodeType() == Node.TEXT_NODE ||
                          node.getNodeType() == Node.CDATA_SECTION_NODE) {
                      Text text = (Text) node;
                      buf.append(text.getData().trim());
                  }
              }
  
              return buf.toString();
          } else {
              return null;
          }
      }
docs: <p>Returns the text value of a child element. Returns
  <code>null</code> if there is no child element found.</p>
  
  @param parent parent element
  @param name   name of the child element
  @return text value