admin管理员组

文章数量:1390677

    const xmlData = response.data // from axios;

    const parser = new DOMParser();
    const xmlDoc = parser.parseFromString(xmlData, "text/xml");

The parsing step creates such error: TypeError: Converting circular structure to JSON

How do I fix this? I would like to use xpath to query the XML file and so I would need to use xmlDoc.

本文标签: xmlDOMParser TypeError Converting circular structure to JSONStack Overflow