From 396d1ab63e4601ce3b4319806cd752af5066603e Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Tue, 4 Apr 2023 12:40:57 +0200 Subject: [PATCH] Fix: Use removeNSPrefix in XML parser options The ignoreNameSpace option for fast-xml-parser has been renamed to ignoreNameSpace. This fixes some undefined attributes on SecInfo pages. --- src/gmp/http/transform/fastxml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmp/http/transform/fastxml.js b/src/gmp/http/transform/fastxml.js index 3a40e5c6de..8403d0b9fe 100644 --- a/src/gmp/http/transform/fastxml.js +++ b/src/gmp/http/transform/fastxml.js @@ -26,7 +26,7 @@ import {success, rejection} from './xml'; const PARSER_OPTIONS = { attributeNamePrefix: '_', ignoreAttributes: false, - ignoreNameSpace: true, + removeNSPrefix: true, textNodeName: '__text', attributeValueProcessor: (name, value, jPath) => parseXmlEncodedString(value), tagValueProcessor: (name, value, jPath, hasAttributes, isLeafNode) =>