change load xml file to call function "LoadXmlFile" and remove -1 to read full xml file without 1 lost