diff --git a/src/assets/sitemapper.js b/src/assets/sitemapper.js index 1b1abc6..b415ec4 100644 --- a/src/assets/sitemapper.js +++ b/src/assets/sitemapper.js @@ -220,7 +220,10 @@ export default class Sitemapper { } // Parse XML using fast-xml-parser - const parser = new XMLParser(); + const parser = new XMLParser({ + isArray: (tagName) => + ['sitemap', 'url'].some((value) => value === tagName), + }); const data = parser.parse(responseBody.toString());