XPathNavigator Class

来源:百度文库 编辑:神马文学网 时间:2024/04/30 05:41:15
NET Framework Class Library
XPathNavigator Class
Reads data from any data store using a cursor model.
For a list of all members of this type, seeXPathNavigator Members.
System.Object
System.Xml.XPath.XPathNavigator
[Visual Basic]MustInherit Public Class XPathNavigatorImplements ICloneable[C#]public abstract class XPathNavigator : ICloneable[C++]public __gc __abstract class XPathNavigator : public ICloneable[JScript]public abstract class XPathNavigator implements ICloneableThread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
XPathNavigator is based on the XPath data model and provides the methods required to implement XPath queries over any data store. To create an XPathNavigator over an XML document or aDataSet (using theXmlDataDocument class), use the CreateNavigator method available in theXmlNode andXPathDocument classes, which implement theIXPathNavigable interface. Additionally, you can create your own implementation of XPathNavigator over other data stores such as file systems or databases. For more information on implementing your own XPathNavigator, seeXPathNavigator over Different Stores.
XPathNavigator provides read-only, random access to data. The current node refers to the node on which the navigator is positioned. The navigator is advanced using any of the move methods and properties reflect the value of the current node. If the navigator is created byXmlDocument, you can use theIHasXmlNode.GetNode method to return the XmlNode representing the current position of the navigator.
XPathNavigator supports XSLT and can be used as an input mechanism to theXslTransform.Transform method.
For more information on the XPath data model, see the W3C XML Path Language (XPath) recommendation located at http://www.w3.org/TR/xpath.
Requirements
Namespace: System.Xml.XPath
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Xml (in System.Xml.dll)
See Also
XPathNavigator Members |System.Xml.XPath Namespace |XslTransform |IHasXmlNode |XPathNavigator Members (Visual J# Syntax)Managed Extensions for C++ Programming 
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.