add support for getting xml element + encoding tests
Merge pull request #85 from dimagi/encodings

add support for getting xml element + encoding tests