/** * Return the text content of the first matched tag. Short cut for "xml.child(tag).text()" * * <p>Return null if there's no matched tag. * * @param tag tag name * @return text * @see testText2 */ public String text(String tag) { XmlDom dom = child(tag); if (dom == null) return null; return dom.text(); }