childNodes: NodeList
// List the text contents of an element NodeList nlChildren = elem.getChildNodes( ); Node ndChild; for (int iNode = 0; iNode < nlChildren.getLength( ); iNode++) { ndChild = nlChildren.item(iNode); if (ndChild.getNodeType( ) = = Node.TEXT_NODE) { System.out.println(ndChild.getNodeValue( )); } }