C# Class System.Xml.XmlReader

Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
AddLineInfo string
CalcBufferSize int
CanReadContentAs bool
CanReadContentAs bool
CheckElement void
CreateReadContentAsException System.Exception
CreateReadContentAsException System.Exception
CreateReadElementContentAsException System.Exception
CreateReadElementContentAsException System.Exception
CreateSqlReader XmlReader
CreateWriterForInnerOuterXml XmlWriter
FinishReadElementContentAsXxx void
GetEncoding System.Text.Encoding
GetV1ConformanceLevel ConformanceLevel
GetXmlTextReaderImpl XmlTextReaderImpl
HasValueInternal bool
InternalReadContentAsString string
IsTextualNode bool
ReadElementString string
ReadElementString string
ReadElementString string
ReadString string
SetNamespacesFlag void
SetupReadElementContentAsXxx bool
SkipSubtree bool
WriteAttributeValue void
WriteNode void

Public Methods

Method Description
Close ( ) : void
Create ( Stream input ) : XmlReader
Create ( Stream input, XmlReaderSettings settings ) : XmlReader
Create ( Stream input, XmlReaderSettings settings, String baseUri ) : XmlReader
Create ( Stream input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
Create ( String inputUri, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
Create ( TextReader input ) : XmlReader
Create ( TextReader input, XmlReaderSettings settings ) : XmlReader
Create ( TextReader input, XmlReaderSettings settings, String baseUri ) : XmlReader
Create ( TextReader input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
Create ( XmlReader reader, XmlReaderSettings settings ) : XmlReader
Create ( string inputUri ) : XmlReader
Create ( string inputUri, XmlReaderSettings settings ) : XmlReader
Dispose ( ) : void
GetAttribute ( int i ) : string
GetAttribute ( string name ) : string
GetAttribute ( string name, string namespaceURI ) : string
IsName ( string str ) : bool
IsNameToken ( string str ) : bool
IsStartElement ( ) : bool
IsStartElement ( string name ) : bool
IsStartElement ( string localname, string ns ) : bool
LookupNamespace ( string prefix ) : string
MoveToAttribute ( string name ) : bool
MoveToAttribute ( string name, string ns ) : bool
MoveToAttribute ( int i ) : void
MoveToContent ( ) : System.Xml.XmlNodeType
MoveToElement ( ) : bool
MoveToFirstAttribute ( ) : bool
MoveToNextAttribute ( ) : bool
Read ( ) : bool
ReadAttributeValue ( ) : bool
ReadContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver ) : object
ReadContentAsBase64 ( byte buffer, int index, int count ) : int
ReadContentAsBinHex ( byte buffer, int index, int count ) : int
ReadContentAsBoolean ( ) : bool
ReadContentAsDateTime ( ) : System.DateTime
ReadContentAsDateTimeOffset ( ) : DateTimeOffset
ReadContentAsDecimal ( ) : decimal
ReadContentAsDouble ( ) : double
ReadContentAsFloat ( ) : float
ReadContentAsInt ( ) : int
ReadContentAsLong ( ) : long
ReadContentAsObject ( ) : object
ReadContentAsString ( ) : string
ReadElementContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver ) : object
ReadElementContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI ) : object
ReadElementContentAsBase64 ( byte buffer, int index, int count ) : int
ReadElementContentAsBinHex ( byte buffer, int index, int count ) : int
ReadElementContentAsBoolean ( ) : bool
ReadElementContentAsBoolean ( string localName, string namespaceURI ) : bool
ReadElementContentAsDateTime ( ) : System.DateTime
ReadElementContentAsDateTime ( string localName, string namespaceURI ) : System.DateTime
ReadElementContentAsDecimal ( ) : decimal
ReadElementContentAsDecimal ( string localName, string namespaceURI ) : decimal
ReadElementContentAsDouble ( ) : double
ReadElementContentAsDouble ( string localName, string namespaceURI ) : double
ReadElementContentAsFloat ( ) : float
ReadElementContentAsFloat ( string localName, string namespaceURI ) : float
ReadElementContentAsInt ( ) : int
ReadElementContentAsInt ( string localName, string namespaceURI ) : int
ReadElementContentAsLong ( ) : long
ReadElementContentAsLong ( string localName, string namespaceURI ) : long
ReadElementContentAsObject ( ) : object
ReadElementContentAsObject ( string localName, string namespaceURI ) : object
ReadElementContentAsString ( ) : string
ReadElementContentAsString ( string localName, string namespaceURI ) : string
ReadEndElement ( ) : void
ReadInnerXml ( ) : string
ReadOuterXml ( ) : string
ReadStartElement ( ) : void
ReadStartElement ( string name ) : void
ReadStartElement ( string localname, string ns ) : void
ReadSubtree ( ) : XmlReader
ReadToDescendant ( string name ) : bool
ReadToDescendant ( string localName, string namespaceURI ) : bool
ReadToFollowing ( string name ) : bool
ReadToFollowing ( string localName, string namespaceURI ) : bool
ReadToNextSibling ( string name ) : bool
ReadToNextSibling ( string localName, string namespaceURI ) : bool
ReadValueChunk ( char buffer, int index, int count ) : int
ResolveEntity ( ) : void
Skip ( ) : void
this ( int i ) : string
this ( string name ) : string
this ( string name, string namespaceURI ) : string

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AddLineInfo ( string message, IXmlLineInfo lineInfo ) : string
CalcBufferSize ( Stream input ) : int
CanReadContentAs ( ) : bool
CanReadContentAs ( System.Xml.XmlNodeType nodeType ) : bool
CheckElement ( string localName, string namespaceURI ) : void
CreateReadContentAsException ( string methodName ) : Exception
CreateReadContentAsException ( string methodName, System.Xml.XmlNodeType nodeType, IXmlLineInfo lineInfo ) : Exception
CreateReadElementContentAsException ( string methodName ) : Exception
CreateReadElementContentAsException ( string methodName, System.Xml.XmlNodeType nodeType, IXmlLineInfo lineInfo ) : Exception
CreateSqlReader ( Stream input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
CreateWriterForInnerOuterXml ( StringWriter sw ) : XmlWriter
FinishReadElementContentAsXxx ( ) : void
GetEncoding ( XmlReader reader ) : Encoding
GetV1ConformanceLevel ( XmlReader reader ) : ConformanceLevel
GetXmlTextReaderImpl ( XmlReader reader ) : XmlTextReaderImpl
HasValueInternal ( System.Xml.XmlNodeType nodeType ) : bool
InternalReadContentAsString ( ) : string
IsTextualNode ( System.Xml.XmlNodeType nodeType ) : bool
ReadElementString ( ) : string
ReadElementString ( string name ) : string
ReadElementString ( string localname, string ns ) : string
ReadString ( ) : string
SetNamespacesFlag ( XmlTextWriter xtw ) : void
SetupReadElementContentAsXxx ( string methodName ) : bool
SkipSubtree ( ) : bool
WriteAttributeValue ( XmlWriter xtw ) : void
WriteNode ( XmlWriter xtw, bool defattr ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Create() public static method

public static Create ( Stream input ) : XmlReader
input Stream
return XmlReader

Create() public static method

public static Create ( Stream input, XmlReaderSettings settings ) : XmlReader
input Stream
settings XmlReaderSettings
return XmlReader

Create() public static method

public static Create ( Stream input, XmlReaderSettings settings, String baseUri ) : XmlReader
input Stream
settings XmlReaderSettings
baseUri String
return XmlReader

Create() public static method

public static Create ( Stream input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
input Stream
settings XmlReaderSettings
inputContext XmlParserContext
return XmlReader

Create() public static method

public static Create ( String inputUri, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
inputUri String
settings XmlReaderSettings
inputContext XmlParserContext
return XmlReader

Create() public static method

public static Create ( TextReader input ) : XmlReader
input TextReader
return XmlReader

Create() public static method

public static Create ( TextReader input, XmlReaderSettings settings ) : XmlReader
input TextReader
settings XmlReaderSettings
return XmlReader

Create() public static method

public static Create ( TextReader input, XmlReaderSettings settings, String baseUri ) : XmlReader
input TextReader
settings XmlReaderSettings
baseUri String
return XmlReader

Create() public static method

public static Create ( TextReader input, XmlReaderSettings settings, XmlParserContext inputContext ) : XmlReader
input TextReader
settings XmlReaderSettings
inputContext XmlParserContext
return XmlReader

Create() public static method

public static Create ( XmlReader reader, XmlReaderSettings settings ) : XmlReader
reader XmlReader
settings XmlReaderSettings
return XmlReader

Create() public static method

public static Create ( string inputUri ) : XmlReader
inputUri string
return XmlReader

Create() public static method

public static Create ( string inputUri, XmlReaderSettings settings ) : XmlReader
inputUri string
settings XmlReaderSettings
return XmlReader

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAttribute() public abstract method

public abstract GetAttribute ( int i ) : string
i int
return string

GetAttribute() public abstract method

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

GetAttribute() public abstract method

public abstract GetAttribute ( string name, string namespaceURI ) : string
name string
namespaceURI string
return string

IsName() public static method

public static IsName ( string str ) : bool
str string
return bool

IsNameToken() public static method

public static IsNameToken ( string str ) : bool
str string
return bool

IsStartElement() public method

public IsStartElement ( ) : bool
return bool

IsStartElement() public method

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

IsStartElement() public method

public IsStartElement ( string localname, string ns ) : bool
localname string
ns string
return bool

LookupNamespace() public abstract method

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

MoveToAttribute() public abstract method

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

MoveToAttribute() public abstract method

public abstract MoveToAttribute ( string name, string ns ) : bool
name string
ns string
return bool

MoveToAttribute() public method

public MoveToAttribute ( int i ) : void
i int
return void

MoveToContent() public method

public MoveToContent ( ) : System.Xml.XmlNodeType
return System.Xml.XmlNodeType

MoveToElement() public abstract method

public abstract MoveToElement ( ) : bool
return bool

MoveToFirstAttribute() public abstract method

public abstract MoveToFirstAttribute ( ) : bool
return bool

MoveToNextAttribute() public abstract method

public abstract MoveToNextAttribute ( ) : bool
return bool

Read() public abstract method

public abstract Read ( ) : bool
return bool

ReadAttributeValue() public abstract method

public abstract ReadAttributeValue ( ) : bool
return bool

ReadContentAs() public method

public ReadContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver ) : object
returnType System.Type
namespaceResolver IXmlNamespaceResolver
return object

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

ReadContentAsBoolean() public method

public ReadContentAsBoolean ( ) : bool
return bool

ReadContentAsDateTime() public method

public ReadContentAsDateTime ( ) : System.DateTime
return System.DateTime

ReadContentAsDateTimeOffset() public method

public ReadContentAsDateTimeOffset ( ) : DateTimeOffset
return DateTimeOffset

ReadContentAsDecimal() public method

public ReadContentAsDecimal ( ) : decimal
return decimal

ReadContentAsDouble() public method

public ReadContentAsDouble ( ) : double
return double

ReadContentAsFloat() public method

public ReadContentAsFloat ( ) : float
return float

ReadContentAsInt() public method

public ReadContentAsInt ( ) : int
return int

ReadContentAsLong() public method

public ReadContentAsLong ( ) : long
return long

ReadContentAsObject() public method

public ReadContentAsObject ( ) : object
return object

ReadContentAsString() public method

public ReadContentAsString ( ) : string
return string

ReadElementContentAs() public method

public ReadElementContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver ) : object
returnType System.Type
namespaceResolver IXmlNamespaceResolver
return object

ReadElementContentAs() public method

public ReadElementContentAs ( Type returnType, IXmlNamespaceResolver namespaceResolver, string localName, string namespaceURI ) : object
returnType System.Type
namespaceResolver IXmlNamespaceResolver
localName string
namespaceURI string
return object

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

ReadElementContentAsBoolean() public method

public ReadElementContentAsBoolean ( ) : bool
return bool

ReadElementContentAsBoolean() public method

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

ReadElementContentAsDateTime() public method

public ReadElementContentAsDateTime ( ) : System.DateTime
return System.DateTime

ReadElementContentAsDateTime() public method

public ReadElementContentAsDateTime ( string localName, string namespaceURI ) : System.DateTime
localName string
namespaceURI string
return System.DateTime

ReadElementContentAsDecimal() public method

public ReadElementContentAsDecimal ( ) : decimal
return decimal

ReadElementContentAsDecimal() public method

public ReadElementContentAsDecimal ( string localName, string namespaceURI ) : decimal
localName string
namespaceURI string
return decimal

ReadElementContentAsDouble() public method

public ReadElementContentAsDouble ( ) : double
return double

ReadElementContentAsDouble() public method

public ReadElementContentAsDouble ( string localName, string namespaceURI ) : double
localName string
namespaceURI string
return double

ReadElementContentAsFloat() public method

public ReadElementContentAsFloat ( ) : float
return float

ReadElementContentAsFloat() public method

public ReadElementContentAsFloat ( string localName, string namespaceURI ) : float
localName string
namespaceURI string
return float

ReadElementContentAsInt() public method

public ReadElementContentAsInt ( ) : int
return int

ReadElementContentAsInt() public method

public ReadElementContentAsInt ( string localName, string namespaceURI ) : int
localName string
namespaceURI string
return int

ReadElementContentAsLong() public method

public ReadElementContentAsLong ( ) : long
return long

ReadElementContentAsLong() public method

public ReadElementContentAsLong ( string localName, string namespaceURI ) : long
localName string
namespaceURI string
return long

ReadElementContentAsObject() public method

public ReadElementContentAsObject ( ) : object
return object

ReadElementContentAsObject() public method

public ReadElementContentAsObject ( string localName, string namespaceURI ) : object
localName string
namespaceURI string
return object

ReadElementContentAsString() public method

public ReadElementContentAsString ( ) : string
return string

ReadElementContentAsString() public method

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

ReadEndElement() public method

public ReadEndElement ( ) : void
return void

ReadInnerXml() public method

public ReadInnerXml ( ) : string
return string

ReadOuterXml() public method

public ReadOuterXml ( ) : string
return string

ReadStartElement() public method

public ReadStartElement ( ) : void
return void

ReadStartElement() public method

public ReadStartElement ( string name ) : void
name string
return void

ReadStartElement() public method

public ReadStartElement ( string localname, string ns ) : void
localname string
ns string
return void

ReadSubtree() public method

public ReadSubtree ( ) : XmlReader
return XmlReader

ReadToDescendant() public method

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

ReadToDescendant() public method

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

ReadToFollowing() public method

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

ReadToFollowing() public method

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

ReadToNextSibling() public method

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

ReadToNextSibling() public method

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

ReadValueChunk() public method

public ReadValueChunk ( char buffer, int index, int count ) : int
buffer char
index int
count int
return int

ResolveEntity() public abstract method

public abstract ResolveEntity ( ) : void
return void

Skip() public method

public Skip ( ) : void
return void

this() public method

public this ( int i ) : string
i int
return string

this() public method

public this ( string name ) : string
name string
return string

this() public method

public this ( string name, string namespaceURI ) : string
name string
namespaceURI string
return string