xml-objtree

0.24.2 • Public • Published

xml-objtree

This is a node.js port of the XML.ObjTree implementation from http://www.kawa.net/works/js/xml/objtree-e.html

Install

npm install --save xml-objtree

Usage

var ObjTree = require('xml-objtree');
var objTree = new ObjTree();
 
var xml = [
    '<?xml version="1.0" encoding="UTF-8"?>',
    '<books>',
    '<book id="1">The Art of Computer Programming</book>',
    '<book id="2">Introduction to Algorithms</book>',
    '</books>',
].join('\n');
 
var json = objTree.parseXML(xml);

/xml-objtree/

    Package Sidebar

    Install

    npm i xml-objtree

    Weekly Downloads

    60

    Version

    0.24.2

    License

    none

    Last publish

    Collaborators

    • cherrry