I have taken the input from student (test.xml) in .xml format using file manager and now I have
1) $fs = get_file_storage();
2) $files = $fs->get_area_files($this->assignment->get_context()->id,
self::COMPONENT_NAME,
MOODLE_ASSIGNSUBMISSION_IIITB_XML_CHECKER_FILEAREA_SUBMISSION,
$submission->id,
'id',
false);
3) $file= reset($files);
Now I have the $file which is of type stored_file .
Now please help me to get the file test.xml.
I am capable to get content of file in string format using get_content() but I want the actual file in xml format.(test.xml).
Please help me regarding this..