Esempio n. 1
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);
        }
Esempio n. 2
0
        /// <summary>
        /// Parser for CdataStatement
        /// </summary>
        /// <returns>Parsed CdataStatement</returns>
        public CdataStatement ParseCdataStatement()
        {
            CdataStatement cdataStatement = new CdataStatement();

            //Skip cdata token
            NextToken("cdata", "cdata expression;", "cdata");

            //Parse expression
            cdataStatement.SetExpression(expressionParser.ParseExpression());

            //Skip ; token
            NextToken(";", "cdata expression;", ';');

            return(cdataStatement);
        }
Esempio n. 3
0
 public virtual void Visit(CdataStatement statement)
 {
     VisitSubNodes(statement);
 }