예제 #1
0
 /// <summary>
 /// The last child of this node matching 'value'. Will be null if there are no children.
 /// </summary>
 public TiXmlNode LastChild(string _value)
 {
     for (TiXmlNode node = lastChild; node != null; node = node.prev)
     {
         if (node.Value().CompareTo(_value) == 0)
         {
             return(node);
         }
     }
     return(null);
 }
예제 #2
0
 /// <summary>
 /// The first child of this node with the matching 'value'. Will be null if none found.
 /// </summary>
 public TiXmlNode FirstChild(string _value)
 {
     for (TiXmlNode node = firstChild; node != null; node = node.next)
     {
         if (node.Value().CompareTo(_value) == 0)
         {
             return(node);
         }
     }
     return(null);
 }