Analyse an xml file