The xml2js library (used here) relies on NodeJS libraries, including events (related issue). Mobile plugins run in a WebView, and thus don't have access to most NodeJS libraries. (At present, only path is polyfilled for most plugins).

In this case, the web built-in DOMParser.parseFromString might be an alternative to xml2js.

1 Like