First Version of XML decoder