simplified
read xml file with an external class