Returns text of the node.
Throws error if node contains anythings that not a text.
Example:
Would throw an error in case of:

This is going to be combined with "extractText" function (used to extract text from the node when it contains other elements).
Returns text of the node.
Throws error if node contains anythings that not a text.
Example:
Would throw an error in case of:
This is going to be combined with "extractText" function (used to extract text from the node when it contains other elements).