exemel
A normalised way of parsing XML, supporting old IEs.
Last updated 7 years ago by killdream .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install exemel 
SYNC missed versions from official npm registry.

eXeMeL

Dependencies Status NPM version experimental

browser support

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

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

Example

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"

Installing

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.

Testing

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

Licence

Copyright (c) 2013 Quildreen Motta.

Released under the MIT licence.

Current Tags

  • 0.1.1                                ...           latest (7 years ago)

2 Versions

  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |