more work in progress, fix contentXML in case it has newlines