最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

xml - DOMParser: TypeError: Converting circular structure to JSON - Stack Overflow

programmeradmin0浏览0评论
    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.

发布评论

评论列表(0)

  1. 暂无评论