R
Join ServerReactiflux
help-js
✅ – Rinkusu – 14-53 Apr 4
Hi, I'm in vanilla JS and trying to use fast-xml-parser. I imported the script with a script tag:
But when trying to parse an actual xml file the output is an empty object. Any idea please ?
<scri
integrity="sha512-XRps..."
src="https://cdnjs.cloudflare.com/ajax/libs/fast-xml-parser/4.1.3/fxparser.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
But when trying to parse an actual xml file the output is an empty object. Any idea please ?
const parser = new XMLParser()
console.log(parser.parse(require`../tiled/${filePath}.tmx`))
@Rinkusu what's the output of
?
console.log(
'required tmx file:',
require`../tiled/${filePath}.tmx`
);
?
nvm I made a php script, thx anyway
2 Messages Not Public
Sign In & Join Server To View