diff --git a/EmotionmlDocument.cs b/EmotionmlDocument.cs index dca8073..ef1aff2 100644 --- a/EmotionmlDocument.cs +++ b/EmotionmlDocument.cs @@ -354,7 +354,7 @@ public XmlDocument ToDom() if (plaintext != null) { - emotionmlXml.AppendChild(emotionmlXml.CreateTextNode(plaintext)); + emotionmlXml.DocumentElement.AppendChild(emotionmlXml.CreateTextNode(plaintext)); } //TODO: validate against scheme (as static method)