return xml as string

fixed #14 in previous commit
fixed #33