Classes
XmlParser
XmlParser
A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14
Summary
Constructors
Methods
Constructors
constructor
new XmlParser(onEvent: (event: ParserEvent) => void, onError?: (error: Error, position: Position) => void, processNamespaces?: boolean, angularSyntax?: boolean): XmlParser
defined in @nativescript/core/xml/index.d.ts:105:1
Creates a new instance of the XmlParser class.
| Parameter | Default | Description |
onEvent | | (event: ParserEvent) => voidThe callback to execute when a parser event occurs. The 'event' parameter contains information about the event. |
onError | | (error: Error, position: Position) => voidThe callback to execute when a parser error occurs. The 'error' parameter contains the error. |
processNamespaces | | booleanSpecifies whether namespaces should be processed. |
angularSyntax | | boolean |
Returns XmlParser
Methods
parse
defined in @nativescript/core/xml/index.d.ts:111:1
Parses the supplied xml string.
| Parameter | Default | Description |
xmlString | | stringThe string containing the xml to parse. |
Returns void
- Previous
- WrappedValue
- Next
- iOSApplication