Exemple #1
0
        /// <summary>
        /// Interpret CommentStatement
        /// </summary>
        /// <param name="statement">CommentStatement to interpret</param>
        public override void Visit(CommentStatement statement)
        {
            XHTMLElement comment = new XHTMLElement("comment", Current);

            comment.SetTagState(false);
            comment.AddContent(statement.GetCommentString());
            AddElement(comment);
        }
Exemple #2
0
        /// <summary>
        /// Interpret CdataStatement
        /// </summary>
        /// <param name="statement">CdataStatement to interpret</param>
        public override void Visit(CdataStatement statement)
        {
            statement.GetExpression().AcceptVisitor(this);
            XHTMLElement cdata = new XHTMLElement("cdata", Current);

            cdata.SetTagState(false);
            cdata.AddContent(TextValue);
            AddElement(cdata);
        }