Fixing namespacing issues, returning xml string