Calling getTextRecursively() on an Element always returns an empty string. That is to be expected since it uses getChildren() for recursive traversal, however that method only returns Elements, so a Text node is never found and thus no text is discovered.
Calling
getTextRecursively()on an Element always returns an empty string. That is to be expected since it usesgetChildren()for recursive traversal, however that method only returns Elements, so a Text node is never found and thus no text is discovered.