/// <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); }
/// <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); }
public virtual void Visit(CdataStatement statement) { VisitSubNodes(statement); }