C# Class System.Xml.XPath.XPathNavigator

Inheritance: XPathItem, ICloneable, IXPathNavigable, IXmlNamespaceResolver
Mostra file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
BuildSubtree void
CompareSiblings XmlNodeOrder
CompileMatchPattern XPathExpression
CreateContextReader XmlReader
CreateReader XmlReader
GetContentKindMask int
GetDepth int
GetKindMask int
GetNamespaces System.Xml.XmlNamespaceManager
GetValidatingReader XmlReader
ICloneable object
IsText bool
IsValidChildType bool
IsValidSiblingType bool
MoveToNonDescendant bool
MoveToPrevious bool
MoveToPrevious bool

Public Methods

Method Description
AppendChild ( ) : XmlWriter
AppendChild ( XPathNavigator newChild ) : void
AppendChild ( XmlReader newChild ) : void
AppendChild ( string newChild ) : void
AppendChildElement ( string prefix, string localName, string namespaceURI, string value ) : void
CheckValidity ( XmlSchemaSet schemas, ValidationEventHandler validationEventHandler ) : bool
Clone ( ) : XPathNavigator
ComparePosition ( XPathNavigator nav ) : XmlNodeOrder
Compile ( string xpath ) : XPathExpression
CreateAttribute ( string prefix, string localName, string namespaceURI, string value ) : void
CreateAttributes ( ) : XmlWriter
CreateNavigator ( ) : XPathNavigator
DeleteRange ( XPathNavigator lastSiblingToDelete ) : void
DeleteSelf ( ) : void
Evaluate ( XPathExpression expr ) : object
Evaluate ( XPathExpression expr, XPathNodeIterator context ) : object
Evaluate ( string xpath ) : object
Evaluate ( string xpath, IXmlNamespaceResolver resolver ) : object
GetAttribute ( string localName, string namespaceURI ) : string
GetNamespace ( string name ) : string
GetNamespacesInScope ( XmlNamespaceScope scope ) : string>.IDictionary
InsertAfter ( ) : XmlWriter
InsertAfter ( XPathNavigator newSibling ) : void
InsertAfter ( XmlReader newSibling ) : void
InsertAfter ( string newSibling ) : void
InsertBefore ( ) : XmlWriter
InsertBefore ( XPathNavigator newSibling ) : void
InsertBefore ( XmlReader newSibling ) : void
InsertBefore ( string newSibling ) : void
InsertElementAfter ( string prefix, string localName, string namespaceURI, string value ) : void
InsertElementBefore ( string prefix, string localName, string namespaceURI, string value ) : void
IsDescendant ( XPathNavigator nav ) : bool
IsSamePosition ( XPathNavigator other ) : bool
LookupNamespace ( string prefix ) : string
LookupPrefix ( string namespaceURI ) : string
Matches ( XPathExpression expr ) : bool
Matches ( string xpath ) : bool
MoveTo ( XPathNavigator other ) : bool
MoveToAttribute ( string localName, string namespaceURI ) : bool
MoveToChild ( XPathNodeType type ) : bool
MoveToChild ( string localName, string namespaceURI ) : bool
MoveToFirst ( ) : bool
MoveToFirstAttribute ( ) : bool
MoveToFirstChild ( ) : bool
MoveToFirstNamespace ( ) : bool
MoveToFirstNamespace ( XPathNamespaceScope namespaceScope ) : bool
MoveToFollowing ( XPathNodeType type ) : bool
MoveToFollowing ( XPathNodeType type, XPathNavigator end ) : bool
MoveToFollowing ( string localName, string namespaceURI ) : bool
MoveToFollowing ( string localName, string namespaceURI, XPathNavigator end ) : bool
MoveToId ( string id ) : bool
MoveToNamespace ( string name ) : bool
MoveToNext ( ) : bool
MoveToNext ( XPathNodeType type ) : bool
MoveToNext ( string localName, string namespaceURI ) : bool
MoveToNextAttribute ( ) : bool
MoveToNextNamespace ( ) : bool
MoveToNextNamespace ( XPathNamespaceScope namespaceScope ) : bool
MoveToParent ( ) : bool
MoveToPrevious ( ) : bool
MoveToRoot ( ) : void
PrependChild ( ) : XmlWriter
PrependChild ( XPathNavigator newChild ) : void
PrependChild ( XmlReader newChild ) : void
PrependChild ( string newChild ) : void
PrependChildElement ( string prefix, string localName, string namespaceURI, string value ) : void
ReadSubtree ( ) : XmlReader
ReplaceRange ( XPathNavigator lastSiblingToReplace ) : XmlWriter
ReplaceSelf ( XPathNavigator newNode ) : void
ReplaceSelf ( XmlReader newNode ) : void
ReplaceSelf ( string newNode ) : void
Select ( XPathExpression expr ) : XPathNodeIterator
Select ( string xpath ) : XPathNodeIterator
Select ( string xpath, IXmlNamespaceResolver resolver ) : XPathNodeIterator
SelectAncestors ( XPathNodeType type, bool matchSelf ) : XPathNodeIterator
SelectAncestors ( string name, string namespaceURI, bool matchSelf ) : XPathNodeIterator
SelectChildren ( XPathNodeType type ) : XPathNodeIterator
SelectChildren ( string name, string namespaceURI ) : XPathNodeIterator
SelectDescendants ( XPathNodeType type, bool matchSelf ) : XPathNodeIterator
SelectDescendants ( string name, string namespaceURI, bool matchSelf ) : XPathNodeIterator
SelectSingleNode ( XPathExpression expression ) : XPathNavigator
SelectSingleNode ( string xpath ) : XPathNavigator
SelectSingleNode ( string xpath, IXmlNamespaceResolver resolver ) : XPathNavigator
SetTypedValue ( object typedValue ) : void
SetValue ( string value ) : void
ToString ( ) : string
ValueAs ( Type returnType, IXmlNamespaceResolver nsResolver ) : object
WriteSubtree ( XmlWriter writer ) : void

Private Methods

Method Description
BuildSubtree ( XmlReader reader, XmlWriter writer ) : void
CompareSiblings ( XPathNavigator n1, XPathNavigator n2 ) : XmlNodeOrder
CompileMatchPattern ( string xpath ) : XPathExpression
CreateContextReader ( string xml, bool fromCurrentNode ) : XmlReader
CreateReader ( ) : XmlReader
GetContentKindMask ( XPathNodeType type ) : int
GetDepth ( XPathNavigator nav ) : int
GetKindMask ( XPathNodeType type ) : int
GetNamespaces ( IXmlNamespaceResolver resolver ) : XmlNamespaceManager
GetValidatingReader ( XmlReader reader, XmlSchemaSet schemas, ValidationEventHandler validationEvent, XmlSchemaType schemaType, XmlSchemaElement schemaElement, XmlSchemaAttribute schemaAttribute ) : XmlReader
ICloneable ( ) : object
IsText ( XPathNodeType type ) : bool
IsValidChildType ( XPathNodeType type ) : bool
IsValidSiblingType ( XPathNodeType type ) : bool
MoveToNonDescendant ( ) : bool
MoveToPrevious ( XPathNodeType type ) : bool
MoveToPrevious ( string localName, string namespaceURI ) : bool

Method Details

AppendChild() public method

public AppendChild ( ) : XmlWriter
return System.Xml.XmlWriter

AppendChild() public method

public AppendChild ( XPathNavigator newChild ) : void
newChild XPathNavigator
return void

AppendChild() public method

public AppendChild ( XmlReader newChild ) : void
newChild XmlReader
return void

AppendChild() public method

public AppendChild ( string newChild ) : void
newChild string
return void

AppendChildElement() public method

public AppendChildElement ( string prefix, string localName, string namespaceURI, string value ) : void
prefix string
localName string
namespaceURI string
value string
return void

CheckValidity() public method

public CheckValidity ( XmlSchemaSet schemas, ValidationEventHandler validationEventHandler ) : bool
schemas System.Xml.Schema.XmlSchemaSet
validationEventHandler ValidationEventHandler
return bool

Clone() public abstract method

public abstract Clone ( ) : XPathNavigator
return XPathNavigator

ComparePosition() public method

public ComparePosition ( XPathNavigator nav ) : XmlNodeOrder
nav XPathNavigator
return XmlNodeOrder

Compile() public method

public Compile ( string xpath ) : XPathExpression
xpath string
return XPathExpression

CreateAttribute() public method

public CreateAttribute ( string prefix, string localName, string namespaceURI, string value ) : void
prefix string
localName string
namespaceURI string
value string
return void

CreateAttributes() public method

public CreateAttributes ( ) : XmlWriter
return System.Xml.XmlWriter

CreateNavigator() public method

public CreateNavigator ( ) : XPathNavigator
return XPathNavigator

DeleteRange() public method

public DeleteRange ( XPathNavigator lastSiblingToDelete ) : void
lastSiblingToDelete XPathNavigator
return void

DeleteSelf() public method

public DeleteSelf ( ) : void
return void

Evaluate() public method

public Evaluate ( XPathExpression expr ) : object
expr XPathExpression
return object

Evaluate() public method

public Evaluate ( XPathExpression expr, XPathNodeIterator context ) : object
expr XPathExpression
context XPathNodeIterator
return object

Evaluate() public method

public Evaluate ( string xpath ) : object
xpath string
return object

Evaluate() public method

public Evaluate ( string xpath, IXmlNamespaceResolver resolver ) : object
xpath string
resolver IXmlNamespaceResolver
return object

GetAttribute() public method

public GetAttribute ( string localName, string namespaceURI ) : string
localName string
namespaceURI string
return string

GetNamespace() public method

public GetNamespace ( string name ) : string
name string
return string

GetNamespacesInScope() public method

public GetNamespacesInScope ( XmlNamespaceScope scope ) : string>.IDictionary
scope XmlNamespaceScope
return string>.IDictionary

InsertAfter() public method

public InsertAfter ( ) : XmlWriter
return System.Xml.XmlWriter

InsertAfter() public method

public InsertAfter ( XPathNavigator newSibling ) : void
newSibling XPathNavigator
return void

InsertAfter() public method

public InsertAfter ( XmlReader newSibling ) : void
newSibling XmlReader
return void

InsertAfter() public method

public InsertAfter ( string newSibling ) : void
newSibling string
return void

InsertBefore() public method

public InsertBefore ( ) : XmlWriter
return System.Xml.XmlWriter

InsertBefore() public method

public InsertBefore ( XPathNavigator newSibling ) : void
newSibling XPathNavigator
return void

InsertBefore() public method

public InsertBefore ( XmlReader newSibling ) : void
newSibling XmlReader
return void

InsertBefore() public method

public InsertBefore ( string newSibling ) : void
newSibling string
return void

InsertElementAfter() public method

public InsertElementAfter ( string prefix, string localName, string namespaceURI, string value ) : void
prefix string
localName string
namespaceURI string
value string
return void

InsertElementBefore() public method

public InsertElementBefore ( string prefix, string localName, string namespaceURI, string value ) : void
prefix string
localName string
namespaceURI string
value string
return void

IsDescendant() public method

public IsDescendant ( XPathNavigator nav ) : bool
nav XPathNavigator
return bool

IsSamePosition() public abstract method

public abstract IsSamePosition ( XPathNavigator other ) : bool
other XPathNavigator
return bool

LookupNamespace() public method

public LookupNamespace ( string prefix ) : string
prefix string
return string

LookupPrefix() public method

public LookupPrefix ( string namespaceURI ) : string
namespaceURI string
return string

Matches() public method

public Matches ( XPathExpression expr ) : bool
expr XPathExpression
return bool

Matches() public method

public Matches ( string xpath ) : bool
xpath string
return bool

MoveTo() public abstract method

public abstract MoveTo ( XPathNavigator other ) : bool
other XPathNavigator
return bool

MoveToAttribute() public method

public MoveToAttribute ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
return bool

MoveToChild() public method

public MoveToChild ( XPathNodeType type ) : bool
type XPathNodeType
return bool

MoveToChild() public method

public MoveToChild ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
return bool

MoveToFirst() public method

public MoveToFirst ( ) : bool
return bool

MoveToFirstAttribute() public abstract method

public abstract MoveToFirstAttribute ( ) : bool
return bool

MoveToFirstChild() public abstract method

public abstract MoveToFirstChild ( ) : bool
return bool

MoveToFirstNamespace() public method

public MoveToFirstNamespace ( ) : bool
return bool

MoveToFirstNamespace() public abstract method

public abstract MoveToFirstNamespace ( XPathNamespaceScope namespaceScope ) : bool
namespaceScope XPathNamespaceScope
return bool

MoveToFollowing() public method

public MoveToFollowing ( XPathNodeType type ) : bool
type XPathNodeType
return bool

MoveToFollowing() public method

public MoveToFollowing ( XPathNodeType type, XPathNavigator end ) : bool
type XPathNodeType
end XPathNavigator
return bool

MoveToFollowing() public method

public MoveToFollowing ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
return bool

MoveToFollowing() public method

public MoveToFollowing ( string localName, string namespaceURI, XPathNavigator end ) : bool
localName string
namespaceURI string
end XPathNavigator
return bool

MoveToId() public abstract method

public abstract MoveToId ( string id ) : bool
id string
return bool

MoveToNamespace() public method

public MoveToNamespace ( string name ) : bool
name string
return bool

MoveToNext() public abstract method

public abstract MoveToNext ( ) : bool
return bool

MoveToNext() public method

public MoveToNext ( XPathNodeType type ) : bool
type XPathNodeType
return bool

MoveToNext() public method

public MoveToNext ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
return bool

MoveToNextAttribute() public abstract method

public abstract MoveToNextAttribute ( ) : bool
return bool

MoveToNextNamespace() public method

public MoveToNextNamespace ( ) : bool
return bool

MoveToNextNamespace() public abstract method

public abstract MoveToNextNamespace ( XPathNamespaceScope namespaceScope ) : bool
namespaceScope XPathNamespaceScope
return bool

MoveToParent() public abstract method

public abstract MoveToParent ( ) : bool
return bool

MoveToPrevious() public abstract method

public abstract MoveToPrevious ( ) : bool
return bool

MoveToRoot() public method

public MoveToRoot ( ) : void
return void

PrependChild() public method

public PrependChild ( ) : XmlWriter
return System.Xml.XmlWriter

PrependChild() public method

public PrependChild ( XPathNavigator newChild ) : void
newChild XPathNavigator
return void

PrependChild() public method

public PrependChild ( XmlReader newChild ) : void
newChild XmlReader
return void

PrependChild() public method

public PrependChild ( string newChild ) : void
newChild string
return void

PrependChildElement() public method

public PrependChildElement ( string prefix, string localName, string namespaceURI, string value ) : void
prefix string
localName string
namespaceURI string
value string
return void

ReadSubtree() public method

public ReadSubtree ( ) : XmlReader
return XmlReader

ReplaceRange() public method

public ReplaceRange ( XPathNavigator lastSiblingToReplace ) : XmlWriter
lastSiblingToReplace XPathNavigator
return System.Xml.XmlWriter

ReplaceSelf() public method

public ReplaceSelf ( XPathNavigator newNode ) : void
newNode XPathNavigator
return void

ReplaceSelf() public method

public ReplaceSelf ( XmlReader newNode ) : void
newNode XmlReader
return void

ReplaceSelf() public method

public ReplaceSelf ( string newNode ) : void
newNode string
return void

Select() public method

public Select ( XPathExpression expr ) : XPathNodeIterator
expr XPathExpression
return XPathNodeIterator

Select() public method

public Select ( string xpath ) : XPathNodeIterator
xpath string
return XPathNodeIterator

Select() public method

public Select ( string xpath, IXmlNamespaceResolver resolver ) : XPathNodeIterator
xpath string
resolver IXmlNamespaceResolver
return XPathNodeIterator

SelectAncestors() public method

public SelectAncestors ( XPathNodeType type, bool matchSelf ) : XPathNodeIterator
type XPathNodeType
matchSelf bool
return XPathNodeIterator

SelectAncestors() public method

public SelectAncestors ( string name, string namespaceURI, bool matchSelf ) : XPathNodeIterator
name string
namespaceURI string
matchSelf bool
return XPathNodeIterator

SelectChildren() public method

public SelectChildren ( XPathNodeType type ) : XPathNodeIterator
type XPathNodeType
return XPathNodeIterator

SelectChildren() public method

public SelectChildren ( string name, string namespaceURI ) : XPathNodeIterator
name string
namespaceURI string
return XPathNodeIterator

SelectDescendants() public method

public SelectDescendants ( XPathNodeType type, bool matchSelf ) : XPathNodeIterator
type XPathNodeType
matchSelf bool
return XPathNodeIterator

SelectDescendants() public method

public SelectDescendants ( string name, string namespaceURI, bool matchSelf ) : XPathNodeIterator
name string
namespaceURI string
matchSelf bool
return XPathNodeIterator

SelectSingleNode() public method

public SelectSingleNode ( XPathExpression expression ) : XPathNavigator
expression XPathExpression
return XPathNavigator

SelectSingleNode() public method

public SelectSingleNode ( string xpath ) : XPathNavigator
xpath string
return XPathNavigator

SelectSingleNode() public method

public SelectSingleNode ( string xpath, IXmlNamespaceResolver resolver ) : XPathNavigator
xpath string
resolver IXmlNamespaceResolver
return XPathNavigator

SetTypedValue() public method

public SetTypedValue ( object typedValue ) : void
typedValue object
return void

SetValue() public method

public SetValue ( string value ) : void
value string
return void

ToString() public method

public ToString ( ) : string
return string

ValueAs() public method

public ValueAs ( Type returnType, IXmlNamespaceResolver nsResolver ) : object
returnType Type
nsResolver IXmlNamespaceResolver
return object

WriteSubtree() public method

public WriteSubtree ( XmlWriter writer ) : void
writer XmlWriter
return void