✅ – Rinkusu – 14-53 Apr 4

RRink4/4/2023
Hi, I'm in vanilla JS and trying to use fast-xml-parser. I imported the script with a script tag:
    <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`))
SScriptyChris4/4/2023
@Rinkusu what's the output of
console.log(
  'required tmx file:',
  require`../tiled/${filePath}.tmx`
);

?
RRink4/4/2023
nvm I made a php script, thx anyway
UUUnknown User4/4/2023
2 Messages Not Public
Sign In & Join Server To View