Fix a bug where xml is printed, not returned