Reading the contents of the xml and image file lists into memory.