UNPKG
jsxml
Version:
latest (0.0.2)
0.0.2
0.0.1
javascript utilities for working xml, mainly in jsonml in array form
github.com/rasmuserik/jsxml/
jsxml
/
test
/
test.js
8 lines
(5 loc)
•
215 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
jsxml =
require
(
'../lib/jsxml.js'
);
var
fs =
require
(
'fs'
);
var
musicstr = fs.
readFileSync
(
'test/music.xml'
).
toString
();
var
musicjson = jsxml.
fromXml
(musicstr);
console
.
log
(jsxml.
toXml
(musicjson), musicstr);