JSPM

  • Created
  • Published
  • Downloads 35228
  • Score
    100M100P100Q146278F
  • License MIT

<xml for="JavaScript">

Package Exports

  • ltx
  • ltx/lib/DOMElement
  • ltx/lib/Element
  • ltx/lib/clone
  • ltx/lib/createElement
  • ltx/lib/escape
  • ltx/lib/parse
  • ltx/lib/parsers/ltx
  • ltx/lib/parsers/ltx.js
  • ltx/lib/stringify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ltx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ltx

JavaScript XML library

build status js-standard-style

ltx is a fast XML builder, parser, serialization and manipulation library for JavaScript.

The builder is a convenient and succinct API to build XML documents represented in memory as JavaScript primitives that can be serialized to XML strings.

The parser can parse XML documents or streams and support multiple parsers.

Features:

Install

npm install ltx

Parsers

By default ltx uses its own parser which is the fastest but doesn't support advanced XML features. ltx supports third party parsers when such features are needed.

parser ops/sec JS stream
sax-js 43,058
libxmljs 56,763
saxes 62,246
node-xml 81,980
node-expat 72,720
ltx/lib/parsers/ltx 490,593

From ltx/benchmarks/parsers.js, higher is better. Node.js v10.11.0 - i5-2520M

Benchmark

npm run benchmark

Test

npm install
npm test