Fix warning for overshadowing XML variable

Fix warning for overshadowing XML variable
`rails/activemodel/test/cases/serializers/xml_serialization_test.rb:121: warning: shadowing outer local variable - xml`