Fixed xml file creation bug in Error % comparison