Interfaces
ParserEvent
ParserEvent
interface ParserEvent {
attributes: Object;
data: string;
elementName: string;
eventType: string;
namespace: string;
position: Position;
prefix: string;
toString(): string;
}
Provides information for a parser event.
Summary
Methods
Properties
attributes
defined in @nativescript/core/xml/index.d.ts:82:1
Returns a JSON object with the attributes of an element in case the eventType is ParserEventType.StartElement.
data
defined in @nativescript/core/xml/index.d.ts:87:1
Returns the relevant data in case the eventType is ParserEventType.Text, ParserEventType.CDATA or ParserEventType.Comment.
elementName
defined in @nativescript/core/xml/index.d.ts:77:1
Returns the name of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
eventType
defined in @nativescript/core/xml/index.d.ts:57:1
Returns the type of the parser event. This is one of the ParserEventType static members.
namespace
defined in @nativescript/core/xml/index.d.ts:72:1
If namespace processing is enabled, returns the namespace of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
position
defined in @nativescript/core/xml/index.d.ts:62:1
Get the position in the xml string where the event was generated.
prefix
defined in @nativescript/core/xml/index.d.ts:67:1
If namespace processing is enabled, returns the prefix of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
Methods
toString
defined in @nativescript/core/xml/index.d.ts:92:1
Returns a JSON string representation of this instance.
Returns string
- Previous
- PanGestureEventData