exemel

A normalised way of parsing XML, supporting old IEs.

eXeMeL

A normalised way of parsing XML, supporting old IEs (7+).

Basically, it gives you your usual HTML DOM API for handling a XML document.

var xml = require('exemel')
var dom = xml.parse('<items><item name="foo"><![CDATA[Bar]]></item><item>Baz</item></items>')
 
var items = dom.querySelectorAll('item')
for (var i = 0; i < items.length; ++i) {
  console.log(items[i].innerText || items[i].textContent)
}
 
// => console: "Bar"; "Baz" 

The easiest way is to grab it from NPM (if you're in the Browser, use Browserify):

$ npm install exemel

If you don't want to use NPM and/or Browserify, you'll need to compile the library yourself. You'll need Git, Make and Node.js:

$ git clone git://github.com/killdream/exemel.git
$ cd exemel
$ npm install
$ make bundle

And use the dist/exemel.umd.js file without a module system, or with an AMD module system like Require.js.

$ npm install -g hifive-browser
$ make browser-test
# Then point your browsers to the URL on yer console.

Copyright (c) 2013 Quildreen Motta.

Released under the MIT licence.