use KVMessage.printDoc() to transform XML to String