Improved return type of getTextContent(): 

Created TextContent interface
Merge pull request #3027 from jimmejardine/master

Improved return type of getTextContent():