decode xml file