Node.getTextContent() returns the text content of the current node and its descendants.
is there a way to get text content of the current node, not the descendant\'s tex
Implicitly don't have any function for the actual node text but with a simple trick you can do it. Ask if the node.getTextContent() contains "\n", if that is the case then the actual node don't have any text.
Hope this help.