Also count text content of element nodes for DDS
Add missing parantheses