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
Afficher le fichier Open project: ngallagher/simplexml

Méthodes publiques

Méthode 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 méthode

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
Résultat bool

IsStart() public méthode

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
Résultat bool

IsText() public méthode

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
Résultat bool