pmd fixes for LoadXMLObect