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), };