The TreeWalker API gives you only the #text Nodes, and then you do what you want with them.
first sighting: TreeWalker 
The TreeWalker API gives you only the #text Nodes, and then you do what you want with them.
first sighting: TreeWalker 
You could also use the NodeIterator API, but TreeWalker is faster