ContentMergeIterator Struct

Definition

Iterates over child content nodes or following sibling nodes. Maintains the nodes in document order.

This API supports the product infrastructure and is not intended to be used directly from your code.

public value class ContentMergeIterator
public struct ContentMergeIterator
type ContentMergeIterator = struct
Public Structure ContentMergeIterator
Inheritance
ContentMergeIterator

Remarks

  1. Assume that the list I of input nodes is in document order, with no duplicates. There are N nodes in list I.
  2. For each node in list I, derive a list of nodes consisting of matching children or following-sibling nodes. Call these lists S(1)...S(N).
  3. Let F be the first node in any list S(X), where X >= 1 and X < N 4. There exists exactly one contiguous sequence of lists S(Y)...S(Z), where Y > X and Z <= N, such that the lists S(X+1)...S(N) can be partitioned into these three groups: a. 1st group (S(X+1)...S(Y-1)) -- All nodes in these lists precede F in document order b. 2nd group (S(Y)...S(Z)) -- All nodes in these lists are duplicates of nodes in list S(X) c. 3rd group (> S(Z)) -- All nodes in these lists succeed F in document order 5. Given #4, node F can be returned once all nodes in the 1st group have been returned. Lists S(Y)...S(Z) can be discarded. And only a single node in the 3rd group need be generated in order to guarantee that all nodes in the 1st and 2nd groups have already been generated.

Properties

Current

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns the current result navigator.

Methods

Create(XmlNavigatorFilter)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes the ContentMergeIterator. Merges multiple sets of content nodes in document order and removes duplicates.

MoveNext(XPathNavigator)

This API supports the product infrastructure and is not intended to be used directly from your code.

Positions the iterator on the next content or sibling node.

Applies to