C# Class Mvp.Xml.XPointer.XPointerReader

XPointerReader implements XPointer Framework in a fast, non-caching, forward-only way. XPointerReader supports XPointer Framework, element(), xmlns(), xpath1() and xpointer() (XPath subset only) XPointer schemes.
See XPointer.NET homepage for more info.
Inheritance: XmlReader, IHasXPathNavigator
Exibir arquivo Open project: Monobjc/monobjc-tools Class Usage Examples

Public Methods

Method Description
Close ( ) : void

See XmlReader.Close.

GetAttribute ( int i ) : string

See XmlReader.GetAttribute(int).

GetAttribute ( string name ) : string

See XmlReader.GetAttribute(string).

GetAttribute ( string name, string namespaceURI ) : string

See XmlReader.GetAttribute(string, string).

GetNavigator ( ) : XPathNavigator

Returns the XPathNavigator for the current context or position.

HasLineInfo ( ) : bool

Gets a value indicating whether the class can return line information. See IXmlLineInfo.HasLineInfo.

LookupNamespace ( String prefix ) : String

See XmlReader.LookupNamespace.

MoveToAttribute ( string name ) : bool

See XmlReader.MoveToAttribute(string).

MoveToAttribute ( string name, string ns ) : bool

See XmlReader.MoveToAttribute(string, string).

MoveToAttribute ( int i ) : void

See XmlReader.MoveToAttribute(int).

MoveToElement ( ) : bool

See XmlReader.MoveToElement.

MoveToFirstAttribute ( ) : bool

See XmlReader.MoveToFirstAttribute.

MoveToNextAttribute ( ) : bool

See XmlReader.MoveToNextAttribute.

Read ( ) : bool

See XmlReader.Read.

ReadAttributeValue ( ) : bool

See XmlReader.ReadAttributeValue.

ReadInnerXml ( ) : string

See XmlReader.ReadInnerXml.

ReadOuterXml ( ) : string

See XmlReader.ReadOuterXml.

ReadString ( ) : string

See XmlReader.ReadString.

ResolveEntity ( ) : void

See XmlReader.ResolveEntity.

XPointerReader ( IXPathNavigable doc, string xpointer ) : System

Creates XPointerReader instnace with given IXPathNavigable and xpointer.

XPointerReader ( XPathNavigator nav, string xpointer ) : System

Creates XPointerReader instnace with given XPathNavigator and xpointer.

XPointerReader ( XmlReader reader, string xpointer ) : System

Creates XPointerReader instance with given XmlReader and xpointer. Additionally sets a flag whether to support schema-determined IDs.

XPointerReader ( string uri, Stream stream, XmlNameTable nt, string xpointer ) : System

Creates XPointerReader instance with given uri, stream, nametable and xpointer.

XPointerReader ( string uri, Stream stream, string xpointer ) : System

Creates XPointerReader instance with given uri, stream and xpointer.

XPointerReader ( string uri, XmlNameTable nt, string xpointer ) : System

Creates XPointerReader instance with given uri, nametable and xpointer.

XPointerReader ( string uri, string xpointer ) : System

Creates XPointerReader instance with given uri and xpointer.

XPointerReader ( string uri, string content, string xpointer ) : System

Creates XPointerReader instance with given document's URI and content.

this ( int i ) : String

See XmlReader.this[int].

this ( string name ) : string

See XmlReader.this[string].

this ( string name, string namespaceURI ) : string

See XmlReader.this[string, string].

Private Methods

Method Description
CreateAndCacheDocument ( XmlReader r ) : XPathDocument
Init ( XPathNavigator nav, string xpointer ) : void

Initializes the XPointerReader.

Method Details

Close() public method

See XmlReader.Close.
public Close ( ) : void
return void

GetAttribute() public method

See XmlReader.GetAttribute(int).
public GetAttribute ( int i ) : string
i int
return string

GetAttribute() public method

See XmlReader.GetAttribute(string).
public GetAttribute ( string name ) : string
name string
return string

GetAttribute() public method

See XmlReader.GetAttribute(string, string).
public GetAttribute ( string name, string namespaceURI ) : string
name string
namespaceURI string
return string

GetNavigator() public method

Returns the XPathNavigator for the current context or position.
public GetNavigator ( ) : XPathNavigator
return XPathNavigator

HasLineInfo() public method

Gets a value indicating whether the class can return line information. See IXmlLineInfo.HasLineInfo.
public HasLineInfo ( ) : bool
return bool

LookupNamespace() public method

See XmlReader.LookupNamespace.
public LookupNamespace ( String prefix ) : String
prefix String
return String

MoveToAttribute() public method

See XmlReader.MoveToAttribute(string).
public MoveToAttribute ( string name ) : bool
name string
return bool

MoveToAttribute() public method

See XmlReader.MoveToAttribute(string, string).
public MoveToAttribute ( string name, string ns ) : bool
name string
ns string
return bool

MoveToAttribute() public method

See XmlReader.MoveToAttribute(int).
public MoveToAttribute ( int i ) : void
i int
return void

MoveToElement() public method

See XmlReader.MoveToElement.
public MoveToElement ( ) : bool
return bool

MoveToFirstAttribute() public method

See XmlReader.MoveToFirstAttribute.
public MoveToFirstAttribute ( ) : bool
return bool

MoveToNextAttribute() public method

See XmlReader.MoveToNextAttribute.
public MoveToNextAttribute ( ) : bool
return bool

Read() public method

See XmlReader.Read.
public Read ( ) : bool
return bool

ReadAttributeValue() public method

See XmlReader.ReadAttributeValue.
public ReadAttributeValue ( ) : bool
return bool

ReadInnerXml() public method

See XmlReader.ReadInnerXml.
public ReadInnerXml ( ) : string
return string

ReadOuterXml() public method

See XmlReader.ReadOuterXml.
public ReadOuterXml ( ) : string
return string

ReadString() public method

See XmlReader.ReadString.
public ReadString ( ) : string
return string

ResolveEntity() public method

See XmlReader.ResolveEntity.
public ResolveEntity ( ) : void
return void

XPointerReader() public method

Creates XPointerReader instnace with given IXPathNavigable and xpointer.
public XPointerReader ( IXPathNavigable doc, string xpointer ) : System
doc IXPathNavigable
xpointer string
return System

XPointerReader() public method

Creates XPointerReader instnace with given XPathNavigator and xpointer.
public XPointerReader ( XPathNavigator nav, string xpointer ) : System
nav XPathNavigator
xpointer string
return System

XPointerReader() public method

Creates XPointerReader instance with given XmlReader and xpointer. Additionally sets a flag whether to support schema-determined IDs.
public XPointerReader ( XmlReader reader, string xpointer ) : System
reader XmlReader
xpointer string
return System

XPointerReader() public method

Creates XPointerReader instance with given uri, stream, nametable and xpointer.
public XPointerReader ( string uri, Stream stream, XmlNameTable nt, string xpointer ) : System
uri string
stream Stream
nt XmlNameTable
xpointer string
return System

XPointerReader() public method

Creates XPointerReader instance with given uri, stream and xpointer.
public XPointerReader ( string uri, Stream stream, string xpointer ) : System
uri string
stream Stream
xpointer string
return System

XPointerReader() public method

Creates XPointerReader instance with given uri, nametable and xpointer.
public XPointerReader ( string uri, XmlNameTable nt, string xpointer ) : System
uri string
nt XmlNameTable
xpointer string
return System

XPointerReader() public method

Creates XPointerReader instance with given uri and xpointer.
public XPointerReader ( string uri, string xpointer ) : System
uri string
xpointer string
return System

XPointerReader() public method

Creates XPointerReader instance with given document's URI and content.
public XPointerReader ( string uri, string content, string xpointer ) : System
uri string XML document's base URI
content string XML document's content
xpointer string XPointer pointer
return System

this() public method

See XmlReader.this[int].
public this ( int i ) : String
i int
return String

this() public method

See XmlReader.this[string].
public this ( string name ) : string
name string
return string

this() public method

See XmlReader.this[string, string].
public this ( string name, string namespaceURI ) : string
name string
namespaceURI string
return string