/* * iterate over siblings * * finds next sibling with same namespace and name * * See also XmlNode#each * * XmlNode#each iterates over children, XmlNode#next over siblings * * Example: * <Foo> * <Bar>... * <Bar>... * <Bar>... * <Bar>... * <Other>... * <Other>... * </Foo> * * node = root.Foo # points to <Foo> node * * bar = node.Bar * while bar do * bar = bar.next * end * * will give you four iterations (all <Bar> nodes) * * child = node.Bar * while child do * child = child.next(1) * end * * will give you six iterations (all children of <Foo>) * The latter example is equal to * * node.each do |child| * ... * end * */ WsXmlNodeH next(int all = 0) {