SpecialSection Event

Fired when a special section is encountered.

Syntax

xml.on('SpecialSection', [callback])

Callback

The 'callback' is called when the 'SpecialSection' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.sectionId
e.text

Remarks

The SpecialSection event is fired whenever a special section (such as <![ CDATA [ ..text... ]]>) is found in the document.

The full text of the special section is provided by the Text parameter, while the SectionId parameter provides the section identifier (e.g. "CDATA").

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Node.js Edition - Version 20.0 [Build 8307]