C# Class System.Xml.Xsl.Runtime.RtfNavigator

RtfNavigators store Xslt result-tree-fragments. At runtime, the Xslt library tests to see if a Navigator is an RtfNavigator in order to enforce certain restrictions, such as prohibiting querying into Rtfs. Furthermore, Rtfs must store extra serialization information required in order to properly implement the Xslt disable-output-escaping flag.
Inheritance: System.Xml.XPath.XPathNavigator
Exibir arquivo Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
CopyToWriter ( XmlWriter writer ) : void

Preserve serialization hints when deep copying.

IsSamePosition ( XPathNavigator other ) : bool

Returns true if this navigator is positioned to the same node as the "other" navigator. Returns false if not, or if the "other" navigator is not the same type as this navigator.

MoveToFirstAttribute ( ) : bool

Position the navigator on the first attribute of the current node and return true. If no attributes can be found, return false.

MoveToFirstChild ( ) : bool

Move to the first content-typed child of the current node. Return false if the current node has no content children.

MoveToFirstNamespace ( XPathNamespaceScope namespaceScope ) : bool

Position the navigator on the namespace within the specified scope. If no matching namespace can be found, return false.

MoveToId ( string id ) : bool

Position to the navigator to the element whose id is equal to the specified "id" string.

MoveToNext ( ) : bool

If the current node is an attribute or namespace (not content), return false. Otherwise, move to the next content node. Return false if there are no more content nodes.

MoveToNextAttribute ( ) : bool

If positioned on an attribute, move to its next sibling attribute. If no attributes can be found, return false.

MoveToNextNamespace ( XPathNamespaceScope namespaceScope ) : bool

Position the navigator on the next namespace within the specified scope. If no matching namespace can be found, return false.

MoveToParent ( ) : bool

Position the navigator on the parent of the current node. If the current node has no parent, return false.

MoveToPrevious ( ) : bool

If the current node is an attribute or namespace (not content), return false. Otherwise, move to the previous (sibling) content node. Return false if there are no previous content nodes.

ToNavigator ( ) : XPathNavigator

Discard serialization hints and return a navigator that actually allows navigation.

Method Details

CopyToWriter() public abstract method

Preserve serialization hints when deep copying.
public abstract CopyToWriter ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void

IsSamePosition() public method

Returns true if this navigator is positioned to the same node as the "other" navigator. Returns false if not, or if the "other" navigator is not the same type as this navigator.
public IsSamePosition ( XPathNavigator other ) : bool
other System.Xml.XPath.XPathNavigator
return bool

MoveToFirstAttribute() public method

Position the navigator on the first attribute of the current node and return true. If no attributes can be found, return false.
public MoveToFirstAttribute ( ) : bool
return bool

MoveToFirstChild() public method

Move to the first content-typed child of the current node. Return false if the current node has no content children.
public MoveToFirstChild ( ) : bool
return bool

MoveToFirstNamespace() public method

Position the navigator on the namespace within the specified scope. If no matching namespace can be found, return false.
public MoveToFirstNamespace ( XPathNamespaceScope namespaceScope ) : bool
namespaceScope XPathNamespaceScope
return bool

MoveToId() public method

Position to the navigator to the element whose id is equal to the specified "id" string.
public MoveToId ( string id ) : bool
id string
return bool

MoveToNext() public method

If the current node is an attribute or namespace (not content), return false. Otherwise, move to the next content node. Return false if there are no more content nodes.
public MoveToNext ( ) : bool
return bool

MoveToNextAttribute() public method

If positioned on an attribute, move to its next sibling attribute. If no attributes can be found, return false.
public MoveToNextAttribute ( ) : bool
return bool

MoveToNextNamespace() public method

Position the navigator on the next namespace within the specified scope. If no matching namespace can be found, return false.
public MoveToNextNamespace ( XPathNamespaceScope namespaceScope ) : bool
namespaceScope XPathNamespaceScope
return bool

MoveToParent() public method

Position the navigator on the parent of the current node. If the current node has no parent, return false.
public MoveToParent ( ) : bool
return bool

MoveToPrevious() public method

If the current node is an attribute or namespace (not content), return false. Otherwise, move to the previous (sibling) content node. Return false if there are no previous content nodes.
public MoveToPrevious ( ) : bool
return bool

ToNavigator() public abstract method

Discard serialization hints and return a navigator that actually allows navigation.
public abstract ToNavigator ( ) : XPathNavigator
return System.Xml.XPath.XPathNavigator