Classes
XmlParser
A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14
Defined in: xml/index.ts
A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14
Constructors
Constructor
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.
Parameters
| 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. |
Returns
XmlParser
Accessors
angularSyntax
Get Signature
get angularSyntax(): boolean;Defined in: xml/index.ts
Returns
boolean
Set Signature
set angularSyntax(value: boolean): void;Defined in: xml/index.ts
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
Methods
parse()
parse(xmlString: string): void;Defined in: xml/index.ts
Parses the supplied xml string.
Parameters
| Parameter | Type | Description |
|---|---|---|
xmlString | string | The string containing the xml to parse. |
Returns
void
- Previous
- WrappedValue