/// <summary>
        /// Appends text a node.
        /// </summary>
        ///
        /// <param name="parent">
        /// The parent.
        /// </param>
        /// <param name="text">
        /// The text.
        /// </param>

        override protected void AppendCharacters(DomObject parent, string text)
        {
            IDomText lastChild = parent.LastChild as IDomText;

            if (lastChild != null)
            {
                lastChild.NodeValue += text;
            }
            else
            {
                lastChild = Document.CreateTextNode(text);
                parent.AppendChildUnsafe(lastChild);
            }
        }