Method | Description | |
---|---|---|
CreateFromStream ( SparseReaderDispatchTable dispatchTable, Stream stream ) : |
Creates a new SparseReader pointing to a System.IO.Stream rather than a System.Xml.XmlReader.
|
|
CreateFromStream ( SparseReaderDispatchTable dispatchTable, Stream stream, |
Creates a new SparseReader pointing to a System.IO.Stream rather than a System.Xml.XmlReader.
|
|
Dispose ( ) : void |
Destroys this SparseReader (and the underlying _xmlReader).
|
|
ReadAttributeBool ( string attributeName ) : bool? |
Reads an attribute value as a boolean.
|
|
ReadAttributeInt ( string attributeName ) : int? |
Reads an attribute value as an integer.
|
|
ReadAttributeString ( string attributeName ) : string |
Reads an attribute value as a string.
|
|
ReadChildren ( string tagName, object parent ) : void |
Reads the children of M:XmlReader.
|
|
ReadElementContentAsDouble ( ) : double |
Reads the current element's content as a double and consumes the element.
|
|
ReadElementContentAsDoubleOrDefault ( ) : double |
Attempts to the current element's content as a double and consumes the element.
|
|
ReadElementContentAsInt32 ( ) : int |
Reads the current element's content as an integer and consumes the element.
|
|
ReadElementContentAsInt32OrDefault ( ) : int |
Read's the current element's content and attempts to convert it to an integer. Consumes the element.
|
|
ReadElementContentAsString ( ) : string |
Reads the current element's content as a string and consumes the element.
|
|
Skip ( ) : void |
Skips the element on which this SparseReader is currently positioned.
|
|
SparseReader ( SparseReaderDispatchTable dispatchTable, XmlReader xmlReader ) : System |
Initializes a new instance of the SparseReader class.
|
Method | Description | |
---|---|---|
IsEndState ( string expectedTagName ) : bool | ||
IsMatchingState ( string expectedTagName, bool isStartState = true ) : bool | ||
ReadEndElement ( string expectedTagName ) : void | ||
ReadStartElement ( ) : void |
public static CreateFromStream ( SparseReaderDispatchTable dispatchTable, Stream stream ) : |
||
dispatchTable | SparseReaderDispatchTable | The dispatch table used to fire delegates for XML elements on /// this instance. |
stream | Stream | The stream from which XML shall be retrieved. The SparseReader takes /// ownership of this stream and is responsible for destroying it. |
return |
public static CreateFromStream ( SparseReaderDispatchTable dispatchTable, Stream stream, |
||
dispatchTable | SparseReaderDispatchTable | The dispatch table used to fire delegates for XML elements on /// this instance. |
stream | Stream | The stream from which XML shall be retrieved. The SparseReader takes /// ownership of this stream and is responsible for destroying it. |
schemaSet | The xml schema to validate the input against | |
return |
public ReadAttributeBool ( string attributeName ) : bool? | ||
attributeName | string | Name of the attribute to read. |
return | bool? |
public ReadAttributeInt ( string attributeName ) : int? | ||
attributeName | string | Name of the attribute to read. |
return | int? |
public ReadAttributeString ( string attributeName ) : string | ||
attributeName | string | Name of the attribute to read. |
return | string |
public ReadChildren ( string tagName, object parent ) : void | ||
tagName | string | Name of the tag. |
parent | object | The parent. |
return | void |
public ReadElementContentAsDouble ( ) : double | ||
return | double |
public ReadElementContentAsDoubleOrDefault ( ) : double | ||
return | double |
public ReadElementContentAsInt32OrDefault ( ) : int | ||
return | int |
public ReadElementContentAsString ( ) : string | ||
return | string |
public SparseReader ( SparseReaderDispatchTable dispatchTable, XmlReader xmlReader ) : System | ||
dispatchTable | SparseReaderDispatchTable | The dispatch table used to fire delegates for XML elements on /// this instance. |
xmlReader | XmlReader | The reader from which XML shall be retrieved. This SparseReader takes /// ownership of this XML reader and destroys it upon destruction. |
return | System |