Skip to content

Latest commit

 

History

History
93 lines (59 loc) · 2.19 KB

XmlParser.md

File metadata and controls

93 lines (59 loc) · 2.19 KB
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

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