Get Text Content
The text content of an element is automatically created as a child StringElement
of that element. To retrieve the text content from an element, you’ll need to retrieve the child StringElement
of your target element. Once you’ve retrieved the StringElement
you can use the getText()
method to get the text content of your element.