Exemplo n.º 1
0
 /// <summary>
 /// Walk the XML tree visiting this node and all of its children.
 /// </summary>
 public override bool Accept(TiXmlVisitor visitor)
 {
     if (visitor.VisitEnter(this))
     {
         for (TiXmlNode node = FirstChild(); node != null; node = node.NextSibling())
         {
             if (!node.Accept(visitor))
             {
                 break;
             }
         }
     }
     return(visitor.VisitExit(this));
 }