remove whitespace from xml tags in APIs

http://manage.dimagi.com/default.asp?102902
Merge pull request #3168 from dimagi/xml-api-fix

remove whitespace from xml tags in APIs