{"_id":"xml","_rev":"195544","name":"xml","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"},{"name":"erisds","email":"erisds@gmail.com"}],"time":{"modified":"2024-06-12T12:04:23.000Z","created":"2011-04-11T03:37:08.770Z","1.0.1":"2016-01-31T01:33:20.949Z","1.0.0":"2014-09-26T22:30:23.340Z","0.0.12":"2014-01-28T15:29:16.819Z","0.0.10":"2013-11-08T16:36:29.273Z","0.0.9":"2013-11-08T14:03:50.843Z","0.0.8":"2013-09-15T21:48:38.304Z","0.0.7":"2011-10-28T19:18:14.498Z","0.0.5":"2011-05-08T23:57:24.247Z","0.0.4":"2011-04-13T03:56:36.490Z","0.0.3":"2011-04-11T03:55:29.103Z","0.0.2":"2011-04-11T03:37:08.770Z"},"users":{"magemagic":true,"victorzimmer":true,"tudou":true,"esperluette":true,"dofy":true,"nachbar90":true,"smithjke":true,"oneinme":true,"n0n1":true,"luuhoangnam":true,"nfd":true,"and-":true,"aahz":true,"stpettersens":true,"jesusgoku":true,"cycomachead":true,"qqqppp9998":true,"karlbateman":true,"tfentonz":true,"antanst":true,"jybleau":true,"marcelitocs":true,"zuizuihao":true,"ahme-t":true,"rbecheras":true,"holly":true,"largepuma":true,"bpolonia":true,"mccoyjordan":true,"bradleybossard":true,"shanemileham":true,"rocket0191":true,"tsxuehu":true,"lynscott":true,"f2ostie":true,"nuwaio":true,"panlw":true,"xiaoyiyu":true,"flumpus-dev":true},"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"repository":{"type":"git","url":"git+ssh://git@github.com/dylang/node-xml.git"},"versions":{"1.0.1":{"name":"xml","version":"1.0.1","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder","json","simple"],"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"contributors":[{"name":"Dylan Greene","url":"https://github.com/dylang"},{"name":"Dodo","url":"https://github.com/dodo"},{"name":"Felix Geisendrfer","url":"felix@debuggable.com"},{"name":"Mithgol"},{"name":"carolineBda","url":"https://github.com/carolineBda"},{"name":"Eric Vantillard https://github.com/evantill"},{"name":"Sean Dwyer https://github.com/reywood"}],"repository":{"type":"git","url":"git+ssh://git@github.com/dylang/node-xml.git"},"bugs":{"url":"http://github.com/dylang/node-xml/issues"},"devDependencies":{"ava":"^0.11.0"},"scripts":{"test":"ava"},"main":"lib/xml.js","license":"MIT","gitHead":"c03b84bc1da9251f04db65428c8c341e51d0ff72","_id":"xml@1.0.1","_shasum":"78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5","_from":".","_npmVersion":"2.14.16","_nodeVersion":"4.2.1","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"dist":{"shasum":"78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5","tarball":"http://registry-npm.ywwl.com/xml/download/xml-1.0.1.tgz","integrity":"sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjBJxUjMslF7TdEllyALZ0bfJXKDMaAi9HyXnjioWvbAiEArxfN+0XrjGICKczywHBWXP+JKIwLS9kcOSTS9x8kQNo="}],"size":6809,"noattachment":false,"key":"/xml/-/xml-1.0.1.tgz"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"},{"name":"erisds","email":"erisds@gmail.com"}],"directories":{},"publish_time":1454204000949,"_cnpm_publish_time":1454204000949},"1.0.0":{"name":"xml","version":"1.0.0","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder","json","simple"],"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"contributors":[{"name":"Dylan Greene","url":"https://github.com/dylang"},{"name":"Dodo","url":"https://github.com/dodo"},{"name":"Felix Geisendrfer","url":"felix@debuggable.com"},{"name":"Mithgol"},{"name":"carolineBda","url":"https://github.com/carolineBda"},{"name":"Eric Vantillard https://github.com/evantill"},{"name":"Sean Dwyer https://github.com/reywood"}],"repository":{"type":"git","url":"http://github.com/dylang/node-xml"},"bugs":{"url":"http://github.com/dylang/node-xml/issues"},"devDependencies":{"chai":"~1.9.0","mocha":"~1.21.4"},"scripts":{"test":"mocha --reporter spec"},"main":"lib/xml.js","license":"MIT","gitHead":"e46f9ccb0f022a777f334e7bc5e5000f50660c2a","_id":"xml@1.0.0","_shasum":"de3ee912477be2f250b60f612f34a8c4da616efe","_from":".","_npmVersion":"2.1.0","_nodeVersion":"0.10.32","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"dist":{"shasum":"de3ee912477be2f250b60f612f34a8c4da616efe","tarball":"http://registry-npm.ywwl.com/xml/download/xml-1.0.0.tgz","integrity":"sha512-NpTtJIGjrofxyTNuc497ZTI/LfhWMSTWbCnAQ8w7DZLgIwn7pWjHNcOhghCEPgzdrwXSZJNxh/dHjunId2jhNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCe+k67GfJUgdy8ojj7xKQaB2Fp/QK5PlCWbboT+zokIwIgJgEcuMLE9gsbJSg5nnp8Agg1/r5IyWlifB/tPxARWfU="}],"size":6759,"noattachment":false,"key":"/xml/-/xml-1.0.0.tgz"},"directories":{},"publish_time":1411770623340,"_cnpm_publish_time":1411770623340},"0.0.12":{"name":"xml","version":"0.0.12","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder","json","simple"],"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"contributors":[{"name":"Dylan Greene","url":"https://github.com/dylang"},{"name":"Dodo","url":"https://github.com/dodo"},{"name":"Felix Geisendrfer","url":"felix@debuggable.com"},{"name":"Mithgol"},{"name":"carolineBda","url":"https://github.com/carolineBda"},{"name":"Eric Vantillard https://github.com/evantill"}],"repository":{"type":"git","url":"http://github.com/dylang/node-xml"},"bugs":{"url":"http://github.com/dylang/node-xml/issues"},"devDependencies":{"chai":"~1.8.1","mocha":"~1.17.1"},"scripts":{"test":"mocha --reporter spec"},"main":"lib/xml.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"_id":"xml@0.0.12","dist":{"shasum":"f08b347109912be00285785f46f15ad8e50a5f67","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.12.tgz","integrity":"sha512-vXz2nTtS+bQYemYFzbTxjlmdMOmIhmP+frdnJi3M2Ul/ezrwcW9IYwiwqvecY3PtHNXGKBDrA+DNAEky0zY7Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0/As+fnD6rQXi2CQK9EJiz34c3AdRbI1Jb3Vwl/UcOQIgbN3regCrk0XK46E6FHdnF5UfX6Rp+v5sHaYr9dhQBXw="}],"size":6788,"noattachment":false,"key":"/xml/-/xml-0.0.12.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{},"publish_time":1390922956819,"_cnpm_publish_time":1390922956819},"0.0.10":{"name":"xml","version":"0.0.10","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder","json","simple"],"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"contributors":[{"name":"Dylan Greene","url":"https://github.com/dylang"},{"name":"Dodo","url":"https://github.com/dodo"},{"name":"Felix Geisendrfer","url":"felix@debuggable.com"},{"name":"Mithgol"},{"name":"carolineBda","url":"https://github.com/carolineBda"}],"repository":{"type":"git","url":"http://github.com/dylang/node-xml"},"bugs":{"url":"http://github.com/dylang/node-xml/issues"},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0"},"scripts":{"test":"./node_modules/.bin/mocha --reporter spec"},"main":"lib/xml.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"_id":"xml@0.0.10","dist":{"shasum":"2480d2c78a4c1a8533bc81f6b0e80f6a4a0f032f","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.10.tgz","integrity":"sha512-BG1y2tpzVMRzO8GGN5B9avGsI5xgZeHjxLLyXvz12fqOD4Efm3GeBeCN2bzKV5mwuono6OJpSxBHMDOQY0dtrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNi0qcOAUiRpQdwPCK61aHIqB3owl39fveaxyArzRQHAIgET/uMjsiSAtllGlyjBrU56z5AY9XkkK62yWNkowulHQ="}],"size":6692,"noattachment":false,"key":"/xml/-/xml-0.0.10.tgz"},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{},"publish_time":1383928589273,"_cnpm_publish_time":1383928589273},"0.0.9":{"name":"xml","version":"0.0.9","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder","json","simple"],"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"contributors":[{"name":"Dylan Greene","url":"https://github.com/dylang"},{"name":"Dodo","url":"https://github.com/dodo"},{"name":"Felix Geisendrfer","url":"felix@debuggable.com"},{"name":"Mithgol"},{"name":"carolineBda","url":"https://github.com/carolineBda"}],"repository":{"type":"git","url":"http://github.com/dylang/node-xml"},"bugs":{"url":"http://github.com/dylang/node-xml/issues"},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0"},"scripts":{"test":"./node_modules/.bin/mocha --reporter spec"},"main":"lib/xml.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"_id":"xml@0.0.9","dist":{"shasum":"7ccc7334339d6e7eaea1013001e05abf46907028","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.9.tgz","integrity":"sha512-IA2Hdxp/1nChqIyp7Btp/PeZ5Hq2l2KtyFC17JQlGXH5BQ7KZq1nXOcwN0YHvT+OFwyuSiqsORxIajvTYRm0kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBNCOF/ofvVEt6Z594fIAylqCTocz+Swl/I0WZZ7mx0AiBFiHUfW7yAlVTi+mAF41J78GtQ0jQGGG9qyci2DYAn1Q=="}],"size":6643,"noattachment":false,"key":"/xml/-/xml-0.0.9.tgz"},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{},"publish_time":1383919430843,"_cnpm_publish_time":1383919430843},"0.0.8":{"name":"xml","version":"0.0.8","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder","json","simple"],"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"contributors":[{"name":"Dylan Greene","url":"https://github.com/dylang"},{"name":"Dodo","url":"https://github.com/dodo"},{"name":"Felix Geisendrfer","url":"felix@debuggable.com"},{"name":"Mithgol"}],"repository":{"type":"git","url":"http://github.com/dylang/node-xml"},"bugs":{"url":"http://github.com/dylang/node-xml/issues"},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0"},"scripts":{"test":"./node_modules/.bin/mocha --reporter spec"},"main":"lib/xml.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"_id":"xml@0.0.8","dist":{"shasum":"e7970d9e085ddf53e52df49ead8dc34b6aff0503","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.8.tgz","integrity":"sha512-SANGTmvdNH2CTVPOlfVtmnUuCpA0R9SZHaomf9wOIUmo8rz+8fTQoOqBVpoggqC50XK6cYdqL/CMmqFXE5AeNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDh3ErcwsXegH7MIjhzxca90pZB4IMBeLPgsd6Y0ZrmWgIhAL7r7HnCmZf035mubOItx8HswWRptCHJ9RF+1rbLJqfs"}],"size":12236,"noattachment":false,"key":"/xml/-/xml-0.0.8.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{},"publish_time":1379281718304,"_cnpm_publish_time":1379281718304},"0.0.7":{"name":"xml","version":"0.0.7","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder"],"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"contributors":[{"name":"Dylan Greene","url":"https://github.com/dylang"},{"name":"Dodo","url":"https://github.com/dodo"},{"name":"Felix Geisendrfer","url":"felix@debuggable.com"}],"repository":{"type":"git","url":"git://github.com/dylang/node-xml.git"},"bugs":{"email":"dylang@gmail.com","url":"http://github.com/dylang/node-xml/issues"},"devDependencies":{"nodeunit":"*","logging":"*"},"scripts":{"test":"nodeunit test"},"main":"index.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"_id":"xml@0.0.7","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.5.10","_defaultsLoaded":true,"dist":{"shasum":"1c07eab653658ab207369a905a463f2d3f605f8c","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.7.tgz","integrity":"sha512-1CaZhrV7mXbMLd19Ro7BazpP7uQEAfJ4lA4qHgWio6WsDVLgBBv4YZE/OYfTab5KAOjC1tg/7sWunQvvJUiqjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIcDsEzhSZpXKr05zdsYxLf6t++o05mFm0CisDxj068AIhAJHn/Syv6B7hznkGT5XCNscNUcJoQ27dqVVgwhldn81n"}],"size":10240,"noattachment":false,"key":"/xml/-/xml-0.0.7.tgz"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{},"publish_time":1319829494498,"_cnpm_publish_time":1319829494498},"0.0.5":{"name":"xml","version":"0.0.5","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder"],"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"contributors":[{"name":"Dylan Greene","url":"https://github.com/dylang"},{"name":"Dodo","url":"https://github.com/dodo"}],"repository":{"type":"git","url":"git://github.com/dylang/node-xml.git"},"bugs":{"email":"dylang@gmail.com","url":"http://github.com/dylang/node-xml/issues"},"devDependencies":{"nodeunit":"*","logging":"*"},"scripts":{"test":"nodeunit test"},"main":"index.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"dependencies":{},"_id":"xml@0.0.5","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"cff2a56ec1dd5efc121de91b31f50c83816d0853","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.5.tgz","integrity":"sha512-JgHMzPDF4goQ9GEPWLcKoTVvhs8wlGRv3B0foYUL9okgwEgRTzI24Wn2bEdIucc4+sSY/K5TKEhKSQG1GOwlag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHP7uwBbIqSYbF/24BlbupUdjldZ2yXbZBP3FxO3/xpkAiEAxEXqjQy2WNtiLGtIQqpYDs2N4mam+iSg1yuheVkeWBA="}],"size":9506,"noattachment":false,"key":"/xml/-/xml-0.0.5.tgz"},"directories":{},"publish_time":1304899044247,"maintainers":[{"email":"github.erisds@gmail.com","name":"erisds"},{"email":"dylang@gmail.com","name":"dylang"}],"_cnpm_publish_time":1304899044247},"0.0.4":{"name":"xml","version":"0.0.4","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder"],"author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"contributors":[{"name":"Dylan Greene","email":"dylang@gmail.com"}],"repository":{"type":"git","url":"git://github.com/dylang/node-xml.git"},"bugs":{"email":"dylang@gmail.com","url":"http://github.com/dylang/node-xml/issues"},"dependencies":{"logging":">= 2.0.0"},"main":"index.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"_id":"xml@0.0.4","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.2","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"20f1e57d25d97577de1c7ece2db353185db66fa3","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.4.tgz","integrity":"sha512-YUDsHs0uIRf+kdZtEj7KnLJqTqk4cY6arV3B60m81GDXbzyxAVPMRnJntIdkU1WQ6bYV/TOy2m5mIB7vpoZ20A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPuH3491temlMx9LMxGlpaFTqr7asJ+AJI3uq783JaTAiBxd09uJc2BOOF4Pb9+EFEq1E2jO6JYaRn/rSEuyOmCFQ=="}],"size":7886,"noattachment":false,"key":"/xml/-/xml-0.0.4.tgz"},"publish_time":1302666996490,"maintainers":[{"email":"github.erisds@gmail.com","name":"erisds"},{"email":"dylang@gmail.com","name":"dylang"}],"_cnpm_publish_time":1302666996490},"0.0.3":{"name":"xml","version":"0.0.3","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Tests and examples.","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder"],"author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"contributors":[{"name":"Dylan Greene","email":"dylang@gmail.com"}],"repository":{"type":"git","url":"git://github.com/dylang/node-xml.git"},"bugs":{"email":"dylang@gmail.com","url":"http://github.com/dylang/node-xml/issues"},"dependencies":{"logging":">= 2.0.0"},"main":"index.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"_id":"xml@0.0.3","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.2","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"6655a81c2c036f6d263c4a4ef5494307b1e60c63","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.3.tgz","integrity":"sha512-0nGXxVPTMS/498N+PLudXmBBKc9Fl/piGKFX++Qxs3YhyhP9DADZg/ZnuOhnEmHqXsADeSgsY/Ye3g4O1WgVCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAp4I2fzt4cBgTMQ9rT3XJL1IAcbAldYVPrRydU7jBYgAiEAz3BvQX5MPWVqurhSM9sgbrOHcP1Y2pocrnkUSjuOls0="}],"size":7538,"noattachment":false,"key":"/xml/-/xml-0.0.3.tgz"},"publish_time":1302494129103,"maintainers":[{"email":"github.erisds@gmail.com","name":"erisds"},{"email":"dylang@gmail.com","name":"dylang"}],"_cnpm_publish_time":1302494129103},"0.0.2":{"name":"xml","version":"0.0.2","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Tests and examples.","homepage":"http://github.com/dylang/node-xml","author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"contributors":[{"name":"Dylan Greene","email":"dylang@gmail.com"}],"repository":{"type":"git","url":"git://github.com/dylang/node-xml.git"},"bugs":{"email":"dylang@gmail.com","url":"http://github.com/dylang/node-xml/issues"},"dependencies":{"logging":">= 2.0.0"},"main":"index.js","engines":{"node":">=0.4.0"},"licenses":[{"type":"MIT","url":"http://github.com/dylang/node-xml/raw/master/LICENSE"}],"_id":"xml@0.0.2","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.2","directories":{"lib":"./lib"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"54cb1b704beee9dbbc894ca486be45e6c3f20762","tarball":"http://registry-npm.ywwl.com/xml/download/xml-0.0.2.tgz","integrity":"sha512-+gWLDvYrEjbqKNKZPdTA3/fFVtR4I5ep+AFxwgWmPCt7QTleNAoZhIV16t6cfcPUcC/E1PlApSXh6Fxn2AdcqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCU+pytM8TKEQB/hZgfhb+f6YQ0Y9IZ/mx07LFueNyBxAIhAPAVl/IaKuiyO7OcZ3zavlQE+WXxXDvnMzMBG6fD+2Gx"}],"size":7490,"noattachment":false,"key":"/xml/-/xml-0.0.2.tgz"},"publish_time":1302493028770,"maintainers":[{"email":"github.erisds@gmail.com","name":"erisds"},{"email":"dylang@gmail.com","name":"dylang"}],"_cnpm_publish_time":1302493028770}},"readme":"# xml [![Build Status](https://api.travis-ci.org/dylang/node-xml.svg)](http://travis-ci.org/dylang/node-xml)\n\n[![NPM](https://nodei.co/npm/xml.png?downloads=true)](https://nodei.co/npm/xml/)\n\n> Fast and simple Javascript-based XML generator/builder for Node projects.\n\n## Install\n\n   $ npm install xml\n\n## API\n\n### `xml(xmlObject, options)`\n\nReturns a `XML` string.\n\n```js\nvar xml = require('xml');\nvar xmlString = xml(xmlObject, options);\n```\n\n#### `xmlObject`\n\n`xmlObject` is a normal JavaScript Object/JSON object that defines the data for the XML string.\n\nKeys will become tag names.\nValues can be an `array of xmlObjects` or a value such as a `string` or `number`.\n\n```js\nxml({a: 1}) === '<a>1</a>'\nxml({nested: [{ keys: [{ fun: 'hi' }]}]}) === '<nested><keys><fun>hi</fun></keys></nested>'\n```\n\nThere are two special keys:\n\n`_attr`\n\nSet attributes using a hash of key/value pairs.\n\n```js\nxml({a: [{ _attr: { attributes: 'are fun', too: '!' }}, 1]}) === '<a attributes=\"are fun\" too=\"!\">1</a>'\n````\n`_cdata`\n\nValue of `_cdata` is wrapped in xml `![CDATA[]]` so the data does not need to be escaped.\n\n```js\nxml({a: { _cdata: \"i'm not escaped: <xml>!\"}}) === '<a><![CDATA[i\\'m not escaped: <xml>!]]></a>'\n```\n\nMixed together:\n```js\nxml({a: { _attr: { attr:'hi'}, _cdata: \"I'm not escaped\" }}) === '<a attr=\"hi\"><![CDATA[I\\'m not escaped]]></a>'\n```\n\n#### `options`\n\n`indent` _optional_ **string** What to use as a tab. Defaults to no tabs (compressed).\n For example you can use `'\\t'` for tab character, or `'  '` for two-space tabs.\n\n`stream` Return the result as a `stream`.\n\n**Stream Example**\n\n```js\nvar elem = xml.element({ _attr: { decade: '80s', locale: 'US'} });\nvar stream = xml({ toys: elem }, { stream: true });\nstream.on('data', function (chunk) {console.log(\"data:\", chunk)});\nelem.push({ toy: 'Transformers' });\nelem.push({ toy: 'GI Joe' });\nelem.push({ toy: [{name:'He-man'}] });\nelem.close();\n\n/*\nresult:\ndata: <toys decade=\"80s\" locale=\"US\">\ndata:     <toy>Transformers</toy>\ndata:     <toy>GI Joe</toy>\ndata:     <toy>\n            <name>He-man</name>\n          </toy>\ndata: </toys>\n*/\n```\n\n`Declaration` _optional_ Add default xml declaration as first node.\n\n_options_ are:\n* encoding: 'value'\n* standalone: 'value'\n          \n**Declaration Example**\n\n```js\nxml([ { a: 'test' }], { declaration: true })\n//result: '<?xml version=\"1.0\" encoding=\"UTF-8\"?><a>test</a>'\n\nxml([ { a: 'test' }], { declaration: { standalone: 'yes', encoding: 'UTF-16' }})\n//result: '<?xml version=\"1.0\" encoding=\"UTF-16\" standalone=\"yes\"?><a>test</a>'\n```\n\n## Examples\n\n**Simple Example**\n\n```js\nvar example1 = [ { url: 'http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower' } ];\nconsole.log(XML(example1));\n//<url>http://www.google.com/search?aq=f&amp;sourceid=chrome&amp;ie=UTF-8&amp;q=opower</url>\n```\n\n**Example with attributes**\n\n```js\nvar example2 = [ { url: { _attr: { hostname: 'www.google.com', path: '/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower' }  } } ];\nconsole.log(XML(example2));\n//result: <url hostname=\"www.google.com\" path=\"/search?aq=f&amp;sourceid=chrome&amp;ie=UTF-8&amp;q=opower\"/>\n```\n\n**Example with array of same-named elements and nice formatting**\n\n```js\nvar example3 = [ { toys: [ { toy: 'Transformers' } , { toy: 'GI Joe' }, { toy: 'He-man' } ] } ];\nconsole.log(XML(example3));\n//result: <toys><toy>Transformers</toy><toy>GI Joe</toy><toy>He-man</toy></toys>\nconsole.log(XML(example3, true));\n/*\nresult:\n<toys>\n    <toy>Transformers</toy>\n    <toy>GI Joe</toy>\n    <toy>He-man</toy>\n</toys>\n*/\n```\n\n**More complex example**\n\n```js\nvar example4 = [ { toys: [ { _attr: { decade: '80s', locale: 'US'} }, { toy: 'Transformers' } , { toy: 'GI Joe' }, { toy: 'He-man' } ] } ];\nconsole.log(XML(example4, true));\n/*\nresult:\n<toys decade=\"80s\" locale=\"US\">\n    <toy>Transformers</toy>\n    <toy>GI Joe</toy>\n    <toy>He-man</toy>\n</toys>\n*/\n```\n\n**Even more complex example**\n\n```js\nvar example5 = [ { toys: [ { _attr: { decade: '80s', locale: 'US'} }, { toy: 'Transformers' } , { toy: [ { _attr: { knowing: 'half the battle' } }, 'GI Joe'] }, { toy: [ { name: 'He-man' }, { description: { _cdata: '<strong>Master of the Universe!</strong>'} } ] } ] } ];\nconsole.log(XML(example5, true));\n/*\nresult:\n<toys decade=\"80s\" locale=\"US\">\n    <toy>Transformers</toy>\n    <toy knowing=\"half the battle\">\n        GI Joe\n    </toy>\n    <toy>\n        <name>He-man</name>\n        <description><![CDATA[<strong>Master of the Universe!</strong>]]></description>\n    </toy>\n</toys>\n*/\n```\n\n## Tests\n\nTests included use [AVA](https://ava.li). Use `npm test` to run the tests.\n\n    $ npm test\n\n## Examples\n\nThere are examples in the examples directory.\n\n# Contributing\n\nContributions to the project are welcome. Feel free to fork and improve. I accept pull requests when tests are included.\n","_attachments":{},"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues"},"license":"MIT"}