C# Class SimpleFramework.Xml.Stream.EventElement

The EventElement 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
Mostrar archivo Open project: ngallagher/simplexml

Public Methods

Method Description
IsEnd ( ) : bool
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

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