From e35e5016e79f0dd5d27d977e14bbb21ab45a33a5 Mon Sep 17 00:00:00 2001 From: Conicaw Date: Thu, 16 Nov 2023 20:17:58 +0400 Subject: [PATCH] fix: fix xml parsing Fix xml parsing. Fixes: #1527 --- src/utils/xmlutils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/xmlutils.js b/src/utils/xmlutils.js index 1ec2827a..788f3d2b 100644 --- a/src/utils/xmlutils.js +++ b/src/utils/xmlutils.js @@ -1,4 +1,4 @@ -import parser from 'fast-xml-parser'; +import { XMLParser } from 'fast-xml-parser'; const options = { attributeNamePrefix: '', @@ -6,6 +6,8 @@ const options = { arrayMode: true, }; +const parser = new XMLParser(); + export default { parse: (xml) => parser.parse(xml, options), };