replace file_get_contents with read_file

added getPageXML() shortcut