public static String getFirstChildText(Element parent, String child, String defaultText) {
    NodeList children = parent.getElementsByTagName(child);
    return children.getLength() > 0? children.item(0).getTextContent():defaultText;
  }