Note: You are on the beta version of our docs. This is a work in progress and may contain broken links and pages.
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) => void The callback to execute when a parser event occurs. The 'event' parameter contains information about the event. |
onError |
| (error: Error, position: Position) => void The callback to execute when a parser error occurs. The 'error' parameter contains the error. |
processNamespaces |
| boolean Specifies 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 |
| string The string containing the xml to parse. |
Returns void
- Previous
- WrappedValue
- Next
- iOSApplication