C# Class System.Xml.XPath.XPathNavigatorReader

Inheritance: System.Xml.XmlReader, IXmlNamespaceResolver
显示文件 Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Protected Properties

Property Type Description
lineInfo IXmlLineInfo
schemaInfo IXmlSchemaInfo

Private Properties

Property Type Description
GetElemNav XPathNavigator
GetElemNav XPathNavigator
GetNamespaceByIndex string
IXmlNamespaceResolver string>.IDictionary
IXmlNamespaceResolver string
MoveToAttr void
SetEOF void
ToXmlNodeType System.Xml.XmlNodeType

Public Methods

Method Description
Close ( ) : void

End reading by transitioning into the Closed state.

Create ( XPathNavigator navToRead ) : XPathNavigatorReader
GetAttribute ( int index ) : string
GetAttribute ( string name ) : string
GetAttribute ( string localName, string namespaceURI ) : string
LookupNamespace ( string prefix ) : string
MoveToAttribute ( string name ) : bool
MoveToAttribute ( string localName, string namespaceName ) : bool
MoveToElement ( ) : bool
MoveToFirstAttribute ( ) : bool
MoveToNextAttribute ( ) : bool
Read ( ) : bool

Move to the next reader state. Return false if that is ReaderState.Closed.

ReadAttributeValue ( ) : bool
ReadContentAsBase64 ( byte buffer, int index, int count ) : int
ReadContentAsBinHex ( byte buffer, int index, int count ) : int
ReadElementContentAsBase64 ( byte buffer, int index, int count ) : int
ReadElementContentAsBinHex ( byte buffer, int index, int count ) : int
ResolveEntity ( ) : void

Protected Methods

Method Description
XPathNavigatorReader ( XPathNavigator navToRead, IXmlLineInfo xli, IXmlSchemaInfo xsi ) : System.IO

Private Methods

Method Description
GetElemNav ( ) : XPathNavigator
GetElemNav ( int &depth ) : XPathNavigator
GetNamespaceByIndex ( XPathNavigator nav, int index, int &count ) : string
IXmlNamespaceResolver ( XmlNamespaceScope scope ) : string>.IDictionary
IXmlNamespaceResolver ( string prefix ) : string
MoveToAttr ( XPathNavigator nav, int depth ) : void
SetEOF ( ) : void

set reader to EOF state

ToXmlNodeType ( XPathNodeType typ ) : System.Xml.XmlNodeType

Translates an XPathNodeType value into the corresponding XmlNodeType value. XPathNodeType.Whitespace and XPathNodeType.SignificantWhitespace are mapped into XmlNodeType.Text.

Method Details

Close() public method

End reading by transitioning into the Closed state.
public Close ( ) : void
return void

Create() static public method

static public Create ( XPathNavigator navToRead ) : XPathNavigatorReader
navToRead XPathNavigator
return XPathNavigatorReader

GetAttribute() public method

public GetAttribute ( int index ) : string
index int
return string

GetAttribute() public method

public GetAttribute ( string name ) : string
name string
return string

GetAttribute() public method

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

LookupNamespace() public method

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

MoveToAttribute() public method

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

MoveToAttribute() public method

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

MoveToElement() public method

public MoveToElement ( ) : bool
return bool

MoveToFirstAttribute() public method

public MoveToFirstAttribute ( ) : bool
return bool

MoveToNextAttribute() public method

public MoveToNextAttribute ( ) : bool
return bool

Read() public method

Move to the next reader state. Return false if that is ReaderState.Closed.
public Read ( ) : bool
return bool

ReadAttributeValue() public method

public ReadAttributeValue ( ) : bool
return bool

ReadContentAsBase64() public method

public ReadContentAsBase64 ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

ReadContentAsBinHex() public method

public ReadContentAsBinHex ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

ReadElementContentAsBase64() public method

public ReadElementContentAsBase64 ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

ReadElementContentAsBinHex() public method

public ReadElementContentAsBinHex ( byte buffer, int index, int count ) : int
buffer byte
index int
count int
return int

ResolveEntity() public method

public ResolveEntity ( ) : void
return void

XPathNavigatorReader() protected method

protected XPathNavigatorReader ( XPathNavigator navToRead, IXmlLineInfo xli, IXmlSchemaInfo xsi ) : System.IO
navToRead XPathNavigator
xli IXmlLineInfo
xsi IXmlSchemaInfo
return System.IO

Property Details

lineInfo protected_oe property

protected IXmlLineInfo lineInfo
return IXmlLineInfo

schemaInfo protected_oe property

protected IXmlSchemaInfo schemaInfo
return IXmlSchemaInfo