Parser accepts IO as input xml_file