WriteStart() public abstract method

Writes the start of the tag.
public abstract WriteStart ( StringBuilder output ) : void
output StringBuilder
return void
Exemplo n.º 1
0
        /// <summary>
        /// Converts the specified tag xml node to text.
        /// </summary>
        private void TagXmlNodeToText(StringBuilder output, XmlNode node)
        {
            #region Check arguments

            if (node == null)
            {
                throw new ArgumentNullException("node");
            }

            if (output == null)
            {
                throw new ArgumentNullException("output");
            }

            #endregion

            TagBase myTag = TagXmlNodeToTag(node);

            myTag.WriteStart(output);

            if (IsSkipWhiteSpace)
            {
                output.Append(cWhiteSpace);
            }

            if (node.ChildNodes.Count > 0)
            {
                XmlNodesToText(output, node.ChildNodes);
            }

            myTag.WriteEnd(output);

            if (IsSkipWhiteSpace)
            {
                output.Append(cWhiteSpace);
            }
        }