findOnlyChild

Like isTag, but if n does not satisfy the criteria and it has one child node, check it recursively instead. Returns the satisfying node or null.

  1. XmlNode findOnlyChild(XmlNode n, string tag, XmlNodeType type)
  2. XmlNode findOnlyChild(XmlNode n, XmlNodeType type)

Meta