getTextContent

This method returns the text content of this node and its descendants.
No serialization is performed, the returned string does not contain any
markup. No whitespace normalization is performed and the returned string
does not contain the white spaces in element content (see the attribute
Text.isElementContentWhitespace).
The string returned is made of the text content of this node depending on
its type, as defined below: