reading file from an XML file