It would be great to add NodeJS support for ClojureScript! It seems data.xml uses DOMParser, which will work in browsers but not in NodeJS.
I looked at the original issue DXML-29, and NodeJS is mentioned there (using xmldom).. but I guess support for NodeJS was never implemented in the end?
I had a look in the code and it seems xmldom is "swapped in" for DOMParser when running the ClojureScript tests, so based on that it should work? Although the tests are running on Nashorn rather than NodeJS. However I couldn't work out where xmldom is coming from.
1) Use some logic in the code, e.g. "try create DOMParser, if error try create xmldom".
Maybe option 1) is preferable.
Unknowns (at least to me): how to "export" the xmldom npm dependency so that it is available for downstream projects using the library..