Question: How do I syntax-check my XML in modern browsers (anything but IE)?
I\'ve seen a page on W3Schools which includes an XML syntax-checker. I don\'t kno
You can also use the package fast-xml-parser, this package have a validate check for xml files:
import { validate, parse } from 'fast-xml-parser'; if( validate(xmlData) === true) { var jsonObj = parse(xmlData,options); }