Fix warning for overshadowing XML variable

Fix warning for overshadowing XML variable