a few modification just for readability
update: Xml2DataSyntaxError can be imported
fix: Content-Type http header was treated incorrectly