If the node is not an element, Node.getNodeValue is called. If the node is an element, the returned string is a catenation of all values of TEXT_NODE and CDATA_SECTION_NODE.
Textual nodes include Text, CDATA and Binary (iDOM's extension).