πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement
XmlParser
A simple non-validating SAX parser based on https://github.com/vflash/easysax version 0.1.14

Summary ​

Constructors

constructor

Methods

parse

Constructors ​

constructor ​

new XmlParser(onEvent: (event: ParserEvent) => void, onError?: (error: Error, position: Position) => void, processNamespaces?: boolean, angularSyntax?: boolean): XmlParser 
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 ​

parse(xmlString: string): void
Parses the supplied xml string.
Parameter Default Description
xmlString
string

The string containing the xml to parse.

Returns void
On this page
  1. Summary
  2. Constructors
    1. constructor
  3. Methods
    1. parse

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /