public IEnumerable<Xml.IQueryableNode> FollowingSiblings(Xml.IQueryableNode node) { var result = node.FollowingSibling(); while (result != null) { yield return result; result = result.FollowingSibling(); } }