taking text nodes into account for sha256 calculation