| title | XmlParser |
|---|---|
| titleTemplate | title - API / NativeScript |
| description | A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14 |
| contributors | false |
Defined in: xml/index.ts
A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14
new XmlParser(
onEvent: (event: ParserEvent) => void,
onError?: (error: Error, position: Position) => void,
processNamespaces?: boolean): XmlParser;Defined in: xml/index.ts
Creates a new instance of the XmlParser class.
| Parameter | Type | 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. |
XmlParser
get angularSyntax(): boolean;Defined in: xml/index.ts
boolean
set angularSyntax(value: boolean): void;Defined in: xml/index.ts
| Parameter | Type |
|---|---|
value |
boolean |
void
parse(xmlString: string): void;Defined in: xml/index.ts
Parses the supplied xml string.
| Parameter | Type | Description |
|---|---|---|
xmlString |
string |
The string containing the xml to parse. |
void