public void StartElement(HtmlNode node)
        {
            labelStacks.AddItem(null);
            TagAction ta = tagActions.Get(node.Name);

            if (ta != null)
            {
                if (ta.ChangesTagLevel())
                {
                    tagLevel++;
                }
                flush = ta.Start(this, node.Name, node.Attributes) | flush;
            }
            else
            {
                tagLevel++;
                flush = true;
            }
            lastEvent    = NBoilerpipeContentHandler.Event.START_TAG;
            lastStartTag = node.Name;
        }
Example #2
0
 /// <exception cref="Sharpen.SAXException"></exception>
 public bool Start(NBoilerpipeContentHandler instance, string localName, HtmlAttributeCollection atts)
 {
     return(t1.Start(instance, localName, atts) | t2.Start(instance, localName, atts));
 }