Reorganise parsers
Convert application/xml to text before parsing.
Closes #160