C# 클래스 Mvp.Xml.Common.XPath.IndexingXPathNavigator

IndexingXPathNavigator enables lazy or eager indexing of any XML store (XmlDocument, XPathDocument or any other IXPathNavigable XML store) thus providing an alternative way to select nodes using XSLT key() function directly from an index table instead of searhing the XML tree. This allows drastically decrease selection time on preindexed selections.

Author: Oleg Tkachenko, http://www.xmllab.net.

Contributors: Daniel Cazzulino, blog

See "XML Indexing Part 1: XML IDs, XSLT Keys and IndexingXPathNavigator" article for more info.

상속: System.Xml.XPath.XPathNavigator
파일 보기 프로젝트 열기: Monobjc/monobjc-tools 1 사용 예제들

공개 메소드들

메소드 설명
AddKey ( string keyName, string match, string use ) : void

Adds named key for use with key() function.

BuildIndexes ( ) : void

Builds indexes according to defined keys.

Clone ( ) : XPathNavigator

Creates new cloned version of the IndexingXPathNavigator.

Compile ( string xpath ) : XPathExpression

Compiles XPath expressions using base XPathNavigator.Compile() method and set IndexingXsltContext instance to the result of the compilation so compiled expressions support key() extension function.

GetAttribute ( string localName, string namespaceURI ) : string

See XPathNavigator.GetAttribute.

GetNamespace ( string localname ) : string

See XPathNavigator.GetNamespace.

IndexingXPathNavigator ( XPathNavigator navigator ) : System

Creates IndexingXPathNavigator over specified XPathNavigator.

IsSamePosition ( XPathNavigator other ) : bool

See XPathNavigator.IsSamePosition.

MoveTo ( XPathNavigator other ) : bool

See XPathNavigator.MoveTo.

MoveToAttribute ( string localName, string namespaceURI ) : bool

See XPathNavigator.MoveToAttribute.

MoveToFirst ( ) : bool

See XPathNavigator.MoveToFirst.

MoveToFirstAttribute ( ) : bool

See XPathNavigator.MoveToFirstAttribute.

MoveToFirstChild ( ) : bool

See XPathNavigator.MoveToFirstChild.

MoveToFirstNamespace ( XPathNamespaceScope namespaceScope ) : bool

See XPathNavigator.MoveToFirstNamespace(XPathNamespaceScope).

MoveToId ( string id ) : bool

See XPathNavigator.MoveToId.

MoveToNamespace ( string @namespace ) : bool

See XPathNavigator.MoveToNamespace.

MoveToNext ( ) : bool

See XPathNavigator.MoveToNext().

MoveToNextAttribute ( ) : bool

See XPathNavigator.MoveToNextAttribute.

MoveToNextNamespace ( XPathNamespaceScope namespaceScope ) : bool

See XPathNavigator.MoveToNextNamespace(XPathNamespaceScope).

MoveToParent ( ) : bool

See XPathNavigator.MoveToParent.

MoveToPrevious ( ) : bool

See XPathNavigator.MoveToPrevious.

MoveToRoot ( ) : void

See XPathNavigator.MoveToRoot.

Select ( string xpath ) : XPathNodeIterator

Selects a node set using the specified XPath expression.

메소드 상세

AddKey() 공개 메소드

Adds named key for use with key() function.
public AddKey ( string keyName, string match, string use ) : void
keyName string The name of the key
match string XPath pattern, defining the nodes to which /// this key is applicable
use string XPath expression used to determine /// the value of the key for each matching node
리턴 void

BuildIndexes() 공개 메소드

Builds indexes according to defined keys.
public BuildIndexes ( ) : void
리턴 void

Clone() 공개 메소드

Creates new cloned version of the IndexingXPathNavigator.
public Clone ( ) : XPathNavigator
리턴 System.Xml.XPath.XPathNavigator

Compile() 공개 메소드

Compiles XPath expressions using base XPathNavigator.Compile() method and set IndexingXsltContext instance to the result of the compilation so compiled expressions support key() extension function.
public Compile ( string xpath ) : XPathExpression
xpath string XPath expression to complile
리턴 System.Xml.XPath.XPathExpression

GetAttribute() 공개 메소드

See XPathNavigator.GetAttribute.
public GetAttribute ( string localName, string namespaceURI ) : string
localName string
namespaceURI string
리턴 string

GetNamespace() 공개 메소드

See XPathNavigator.GetNamespace.
public GetNamespace ( string localname ) : string
localname string
리턴 string

IndexingXPathNavigator() 공개 메소드

Creates IndexingXPathNavigator over specified XPathNavigator.
public IndexingXPathNavigator ( XPathNavigator navigator ) : System
navigator System.Xml.XPath.XPathNavigator Core XPathNavigator
리턴 System

IsSamePosition() 공개 메소드

See XPathNavigator.IsSamePosition.
public IsSamePosition ( XPathNavigator other ) : bool
other System.Xml.XPath.XPathNavigator
리턴 bool

MoveTo() 공개 메소드

See XPathNavigator.MoveTo.
public MoveTo ( XPathNavigator other ) : bool
other System.Xml.XPath.XPathNavigator
리턴 bool

MoveToAttribute() 공개 메소드

See XPathNavigator.MoveToAttribute.
public MoveToAttribute ( string localName, string namespaceURI ) : bool
localName string
namespaceURI string
리턴 bool

MoveToFirst() 공개 메소드

See XPathNavigator.MoveToFirst.
public MoveToFirst ( ) : bool
리턴 bool

MoveToFirstAttribute() 공개 메소드

See XPathNavigator.MoveToFirstAttribute.
public MoveToFirstAttribute ( ) : bool
리턴 bool

MoveToFirstChild() 공개 메소드

See XPathNavigator.MoveToFirstChild.
public MoveToFirstChild ( ) : bool
리턴 bool

MoveToFirstNamespace() 공개 메소드

See XPathNavigator.MoveToFirstNamespace(XPathNamespaceScope).
public MoveToFirstNamespace ( XPathNamespaceScope namespaceScope ) : bool
namespaceScope XPathNamespaceScope
리턴 bool

MoveToId() 공개 메소드

See XPathNavigator.MoveToId.
public MoveToId ( string id ) : bool
id string
리턴 bool

MoveToNamespace() 공개 메소드

See XPathNavigator.MoveToNamespace.
public MoveToNamespace ( string @namespace ) : bool
@namespace string
리턴 bool

MoveToNext() 공개 메소드

See XPathNavigator.MoveToNext().
public MoveToNext ( ) : bool
리턴 bool

MoveToNextAttribute() 공개 메소드

See XPathNavigator.MoveToNextAttribute.
public MoveToNextAttribute ( ) : bool
리턴 bool

MoveToNextNamespace() 공개 메소드

See XPathNavigator.MoveToNextNamespace(XPathNamespaceScope).
public MoveToNextNamespace ( XPathNamespaceScope namespaceScope ) : bool
namespaceScope XPathNamespaceScope
리턴 bool

MoveToParent() 공개 메소드

See XPathNavigator.MoveToParent.
public MoveToParent ( ) : bool
리턴 bool

MoveToPrevious() 공개 메소드

See XPathNavigator.MoveToPrevious.
public MoveToPrevious ( ) : bool
리턴 bool

MoveToRoot() 공개 메소드

See XPathNavigator.MoveToRoot.
public MoveToRoot ( ) : void
리턴 void

Select() 공개 메소드

Selects a node set using the specified XPath expression.
public Select ( string xpath ) : XPathNodeIterator
xpath string A string representing an XPath expression
리턴 System.Xml.XPath.XPathNodeIterator