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.