C# Class SimpleFramework.Xml.Stream.StreamReader.Text

The Text object is used to represent a text event. If wraps a node that holds text consumed from the document. These are used by InputNode objects to extract the text values for elements For debugging this exposes the node.
Inheritance: EventToken
Mostrar archivo Open project: ngallagher/simplexml

Public Methods

Method Description
IsText ( ) : bool

This is true as this event represents a text token. Text tokens are required to provide a value only. So namespace details and the node name will always return null.

Text ( XmlReader reader ) : System.Collections.Generic

Constructor for the Text object. This creates an event that provides text to the core reader. Text can be in the form of a CDATA section or a normal text entry.

Method Details

IsText() public method

This is true as this event represents a text token. Text tokens are required to provide a value only. So namespace details and the node name will always return null.
public IsText ( ) : bool
return bool

Text() public method

Constructor for the Text object. This creates an event that provides text to the core reader. Text can be in the form of a CDATA section or a normal text entry.
public Text ( XmlReader reader ) : System.Collections.Generic
reader System.Xml.XmlReader
return System.Collections.Generic