reader for read xml file