obtain text value of TextNode