doodad-js-xml

XML Parser

Replaced by @doodad-js/xml.
Last updated 3 years ago by doodadjs .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install doodad-js-xml 
SYNC missed versions from official npm registry.

XML Parser

NPM Version

Installation

$ npm install doodad-js-xml

Features

  • Parses XML from a stream.
  • By default, it uses the 'sax' package, but can support any other parser accepting chunks of data.

Quick Start

    "use strict";

    const modules = {};
	require('doodad-js-io').add(modules);
	require('doodad-js-xml').add(modules);

    require('doodad-js').createRoot(modules).then(root => {
			const xml = root.Doodad.Tools.Xml;
			// NOTE: Random songs
			return xml.parse("<songs><song><title>Another Me In Lack'ech</title><artist>Epica</artist></song><song><title>Silent Lucidity</title><artist>Queensryche</artist></song><song><title>One</title><artist>Metallica</artist></song></songs>")
		}).then(doc => {
			console.log(doc);
		}).catch(err => {
            console.error(err);
        });

Other available packages

  • doodad-js: Object-oriented programming framework (release)
  • doodad-js-cluster: Cluster manager (alpha)
  • doodad-js-dates: Dates formatting (beta)
  • doodad-js-http: Http server (alpha)
  • doodad-js-http_jsonrpc: JSON-RPC over http server (alpha)
  • doodad-js-io: I/O module (alpha)
  • doodad-js-ipc: IPC/RPC server (alpha)
  • doodad-js-json: JSON parser (alpha)
  • doodad-js-loader: Scripts loader (beta)
  • doodad-js-locale: Locales (beta)
  • doodad-js-make: Make tools for doodad (alpha)
  • doodad-js-mime: Mime types (beta)
  • doodad-js-minifiers: Javascript minifier used by doodad (alpha)
  • doodad-js-safeeval: SafeEval (beta)
  • doodad-js-server: Servers base module (alpha)
  • doodad-js-templates: HTML page templates (alpha)
  • doodad-js-terminal: Terminal (alpha)
  • doodad-js-test: Test application
  • doodad-js-unicode: Unicode Tools (beta)
  • doodad-js-widgets: Widgets base module (alpha)
  • doodad-js-xml: XML Parser (beta)

License

Apache-2.0

Current Tags

  • 4.0.0-beta.0                                ...           latest (3 years ago)

16 Versions

  • 4.0.0-beta.0 [deprecated]           ...           3 years ago
  • 3.3.0 [deprecated]           ...           3 years ago
  • 3.2.0 [deprecated]           ...           3 years ago
  • 3.1.0 [deprecated]           ...           3 years ago
  • 3.0.0 [deprecated]           ...           3 years ago
  • 2.2.0 [deprecated]           ...           4 years ago
  • 2.1.0 [deprecated]           ...           4 years ago
  • 2.0.0 [deprecated]           ...           4 years ago
  • 1.4.4 [deprecated]           ...           4 years ago
  • 1.4.3 [deprecated]           ...           4 years ago
  • 1.2.2 [deprecated]           ...           4 years ago
  • 1.2.1 [deprecated]           ...           4 years ago
  • 1.1.3 [deprecated]           ...           4 years ago
  • 1.1.2 [deprecated]           ...           4 years ago
  • 1.1.1 [deprecated]           ...           4 years ago
  • 1.0.2 [deprecated]           ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)

Copyright 2014 - 2017 © taobao.org |