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 Properties Returns a JSON object with the attributes of an element in case the eventType is ParserEventType.StartElement.
Returns the relevant data in case the eventType is ParserEventType.Text, ParserEventType.CDATA or ParserEventType.Comment.
Returns the name of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
Returns the type of the parser event. This is one of the ParserEventType static members.
If namespace processing is enabled, returns the namespace of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
Get the position in the xml string where the event was generated.
If namespace processing is enabled, returns the prefix of the element in case the eventType is ParserEventType.StartElement or ParserEventType.EndElement.
Methods Returns a JSON string representation of this instance.
Returns string
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4