Notes:
---------------------------------------
1. Modified XmlParser::createTextElement()
   - added code to trim trailing whitespace from text
