Start reading the XML file

It checks if the necessary xml elements exist and it reads them