fixed Gendarme error in XmlUtils

Change-Id: I9062ffb02dde7e1ac076996f037aa3d7dde0339b