create messages with XML API instead of using XML-strings