Refactored LoadXML file