XmlDocument.createTextNode

XmlText createTextNode(string data) @safe

Creates a text node.