xml-toolkit 1.0.53 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/XMLReader.js +7 -2
- package/package.json +1 -1
package/lib/XMLReader.js
CHANGED
|
@@ -211,8 +211,13 @@ const XMLReader = class extends Transform {
|
|
|
211
211
|
case SAXEvent.TYPES.CHARACTERS:
|
|
212
212
|
case SAXEvent.TYPES.CDATA:
|
|
213
213
|
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
try {
|
|
215
|
+
this.text += e.text
|
|
216
|
+
return callback ()
|
|
217
|
+
}
|
|
218
|
+
catch (error) {
|
|
219
|
+
return callback (error)
|
|
220
|
+
}
|
|
216
221
|
|
|
217
222
|
default:
|
|
218
223
|
|