/// <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); }
/// <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); }