WS_MOVE_TO enumeration (webservices.h)

This enumeration identifies the various ways to move about an xml document.

Syntax

typedef enum {
  WS_MOVE_TO_ROOT_ELEMENT = 0,
  WS_MOVE_TO_NEXT_ELEMENT = 1,
  WS_MOVE_TO_PREVIOUS_ELEMENT = 2,
  WS_MOVE_TO_CHILD_ELEMENT = 3,
  WS_MOVE_TO_END_ELEMENT = 4,
  WS_MOVE_TO_PARENT_ELEMENT = 5,
  WS_MOVE_TO_NEXT_NODE = 6,
  WS_MOVE_TO_PREVIOUS_NODE = 7,
  WS_MOVE_TO_FIRST_NODE = 8,
  WS_MOVE_TO_BOF = 9,
  WS_MOVE_TO_EOF = 10,
  WS_MOVE_TO_CHILD_NODE = 11
} WS_MOVE_TO;

Constants

 
WS_MOVE_TO_ROOT_ELEMENT
Value: 0
Moves to the topmost element in the document. If there is no root element, then the position is left unchanged.
WS_MOVE_TO_NEXT_ELEMENT
Value: 1
Moves to the next element with the same depth and parent as the current node. Text and comments are skipped. If no element
is found, then the position is left unchanged.
WS_MOVE_TO_PREVIOUS_ELEMENT
Value: 2
Moves to the previous element with the same depth and parent as the current node. Text and comments are skipped. If no element
is found, then the position is left unchanged.
WS_MOVE_TO_CHILD_ELEMENT
Value: 3
Moves to the first child element below the current node. Text and comments are skipped. If no element is found, then the
position is left unchanged.
WS_MOVE_TO_END_ELEMENT
Value: 4
If the current node is an element, then moves to its corresponding end element. Otherwise, the position is left
unchanged.
WS_MOVE_TO_PARENT_ELEMENT
Value: 5
Moves to the element node containing the current node. End elements are considered the last child of their
corresponding start element. If the current position is the root element, then the position will be moved
to WS_XML_NODE_TYPE_BOF. If the current position is WS_XML_NODE_TYPE_BOF, then
current position is left unchanged.
WS_MOVE_TO_NEXT_NODE
Value: 6
Moves to the next sibling of the current node. If the current node is an end element, then the position is left unchanged.
WS_MOVE_TO_PREVIOUS_NODE
Value: 7
Moves to the previous sibling of the current node. If the current node is the first child of an element, then the position
is left unchanged.
WS_MOVE_TO_FIRST_NODE
Value: 8
Moves to the first child of the parent of the current node.
WS_MOVE_TO_BOF
Value: 9
Moves to the position logically before the first node in the document.
WS_MOVE_TO_EOF
Value: 10
Moves to the position logically after the last node in the document.
WS_MOVE_TO_CHILD_NODE
Value: 11
Moves to the first child of the current node. If the node has no children then the position is left unchanged.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Header webservices.h