Add code for reading from XML result file