Closed sibelius closed 6 months ago
any solution for this?
Set the ignoreAttrs
parser option to true
. Something like:
import { parseStringPromise } from 'xml2js';
...
const rawXml = /* ... your raw XML */
const parsed = await parseStringPromise(rawXml, {
ignoreAttrs: true,
explicitArray: false,
});
Available parser options are documented here: https://www.npmjs.com/package/xml2js#options
I have an xml with this value on it
the returned json is like this:
how can I transform this into
null
?