NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataDocumentNavigator Members

Public:

Constructor

DataDocumentNavigator Constructor Initializes a new instance of the DataDocumentNavigator class to navigate over the specified XmlDataDocument.

Properties

AttributeCount Gets the number of attributes on the current node.
ChildCount Gets the number of child nodes for the current node.
HasAttributes Gets a value indicating whether the current node has any attributes.
HasChildren Gets a value indicating whether the current node has child nodes.
HasSelection (inherited from XmlNavigator) Determines if this XmlNavigator currently has a selection set.
HasValue Gets a value indicating whether Value has a value to return.
IndexInParent Gets the zero-based index of this node's position in its parent node.
InnerText Gets or sets the concatenated values of the current node and all its children.
IsDefault Gets a value indicating whether the current node is an attribute that was generated from the default value defined in the DTD or schema.
IsEmptyTag Gets or sets a value indicating whether the current node is an empty element (for example, <MyElement/>).
IsReadOnly Gets a value indicating whether the current node is read-only.
LocalName Gets the name of the node without the namespace prefix.
Name Gets the name of the current node, including the namespace prefix.
NamespaceURI Gets the namespace URN (as defined in the W3C Namespace Specification) of the current namespace scope.
NameTable Gets the XmlNameTable associated with this implementation.
NodeType Gets the type of the current node.
Prefix Gets or sets the namespace prefix associated with the current node.
Selection (inherited from XmlNavigator) Gets the last XPath expression used in a successful call to the Select method.
Value Gets or sets the text value of the current node.

Methods

Clone Creates a new XmlNavigator positioned at the same node as this DataDocumentNavigator.
Compile (inherited from XmlNavigator) Compiles the given XPath expression and returns an object representing that expression.
CopyChildren Copies all the children from current position of the specified XmlNavigator and inserts them at the specified position in this XmlNavigator.
CopySelected Copies all the selected nodes from the specified XmlNavigator (as returned by MoveToNextSelected) and inserts them at the specified position in this tree.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Evaluate (inherited from XmlNavigator) Evaluates the given expression and returns the typed result (int, boolean or string).
GetAttribute Overloaded. Gets the value of an attribute.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
HasAttribute Overloaded. Determines whether the current node has the specified attribute.
Insert Overloaded. Inserts node(s) at the specified position.
IsSamePosition Determines whether this XmlNavigator is at the same position as the specified XmlNavigator.
IsSameRow [To be supplied.]
LookupPrefix Looks up the prefix for the given namespace URI as defined higher up in the tree.
Matches (inherited from XmlNavigator) Determines whether the current node matches the specified XPath expression
Move Moves the entire subtree point to in the specified XmlNavigator to the specified position in this XmlNavigator.
MoveChildren Moves all the children from current position of the specified XmlNavigator and inserts them at the specified position in this XmlNavigator.
MoveSelected Moves all the selected nodes from the specified XmlNavigator (as returned by MoveToNextSelected) and inserts them at the specified position in this XmlNavigator.
MoveTo Moves to the same position as the specified XmlNavigator.
MoveToAttribute Overloaded. Move to the specified attribute.

The MoveToAttribute methods enable you to get both random access to attributes and strongly typed access to attribute values.

To get strongly typed access to an attribute value, you must do the following:

  1. Call MoveToAttribute to move to the attribute whose value you want to access.
  2. Call Read method for the data type you want (for example, ReadBoolean for boolean, ReadDate for DateTime, and so on).

After calling MoveToAttribute, the Name, Namespace, Prefix properties will reflect the properties of that attribute.

MoveToChild Moves to the specified child node of the current node (index 0 is the first child).
MoveToDocument Moves to the document node that owns this node.
MoveToDocumentElement Moves to the child element node of the owning document.
MoveToElement Moves to the element that contains the current attribute node.
MoveToFirst Moves to the first sibling of the current node.
MoveToFirstAttribute Moves to the first attribute.
MoveToFirstChild Moves to the first child of the current node.
MoveToFirstSelected (inherited from XmlNavigator) Moves the XmlNavigator to the first node in the selected set.
MoveToId Moves to the node with an ID attribute whose value matches the specified string.
MoveToLast Moves to the last sibling of the current node.
MoveToLastChild Moves to the last child of the current node.
MoveToLastSelected (inherited from XmlNavigator) Moves the XmlNavigator to the last node in the selected set.
MoveToNext Moves to the next sibling of the current node.
MoveToNextAttribute Moves to the next attribute.
MoveToNextSelected (inherited from XmlNavigator) Moves the XmlNavigator to the next node in the selected set.
MoveToParent Moves to the parent of the current node.
MoveToPrevious Moves to the previous sibling of the current node.
MoveToPreviousSelected (inherited from XmlNavigator) Moves the XmlNavigator to the previous node in the selected set.
MoveToRow [To be supplied.]
PopPosition Moves the XmlNavigator back to a previously pushed position and pops that saved position off the stack.
PushPosition Saves the current position.
Remove Overloaded. Removes the specified node(s).
RemoveSelected Removes all the selected nodes.
Select (inherited from XmlNavigator) Selects a new set of "records" using the specified XPath expression.
SelectSingle (inherited from XmlNavigator) Selects the first node that matches the specified expression.
SetAttribute Overloaded. Sets the value of the specified attribute.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected:

Methods

MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

DataDocumentNavigator Class | System.NewXml Namespace