// This is not a perfect test, but it will do for now. // A better test would dig into the contained System.XmlNode... public override bool Matches(object o) { System.Xml.XmlElement nn = o as System.Xml.XmlElement; if (nn == null) { return(false); } return(nn.DebugAsString() == node.DebugAsString()); }