C# Class SimpleFramework.Xml.Stream.EventToken

The EventToken object is used to represent an event that has been extracted from the XML document. Events provide a framework neutral way to represent a token from the source XML. It provides the name and value of the event, if applicable, and also provides namespace information. Some nodes will have associated Attribute objects, typically these will be the XML element events. Also, if available, the event will provide the line number the event was encountered in the XML.
Inheritance: EventNode
ファイルを表示 Open project: ngallagher/simplexml

Public Methods

Method Description
IsEnd ( ) : bool

This is true when the node represents an element close. Such events are required by the core reader to determine if a node is still in context. This helps to determine if there are any more children to be read from a specific node.

IsStart ( ) : bool

This is true when the node represents a new element. This is the core event type as it contains the element name and any associated attributes. The core reader uses this to compose the input nodes that are produced.

IsText ( ) : bool

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

Method Details

IsEnd() public method

This is true when the node represents an element close. Such events are required by the core reader to determine if a node is still in context. This helps to determine if there are any more children to be read from a specific node.
public IsEnd ( ) : bool
return bool

IsStart() public method

This is true when the node represents a new element. This is the core event type as it contains the element name and any associated attributes. The core reader uses this to compose the input nodes that are produced.
public IsStart ( ) : bool
return bool

IsText() public method

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