Reading an XML file?

Currently, I have a little js app that runs locally on a client pc. No web is involved, despite using the browser as the ui. It’s just a .js file. It uses a data.js file, which has a massive array in it, for it’s data source.

What I’d like to do is use an XML file in place of this data.js file, but I have clue how to read xml via js.

Requirements:

  • Cannot use MS components.
  • Must work on all browsers.
  • Must work on all OS.

So, does JS, alone, support reading from an XML file? Can this be done?