{"_id":"xml","_rev":"78-070b7bab799ff37f46c0b20d4c72d84b","name":"xml","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","dist-tags":{"latest":"1.0.1"},"versions":{"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":"https://registry.npmjs.org/xml/-/xml-0.0.2.tgz","integrity":"sha512-+gWLDvYrEjbqKNKZPdTA3/fFVtR4I5ep+AFxwgWmPCt7QTleNAoZhIV16t6cfcPUcC/E1PlApSXh6Fxn2AdcqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCU+pytM8TKEQB/hZgfhb+f6YQ0Y9IZ/mx07LFueNyBxAIhAPAVl/IaKuiyO7OcZ3zavlQE+WXxXDvnMzMBG6fD+2Gx"}]}},"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":"https://registry.npmjs.org/xml/-/xml-0.0.3.tgz","integrity":"sha512-0nGXxVPTMS/498N+PLudXmBBKc9Fl/piGKFX++Qxs3YhyhP9DADZg/ZnuOhnEmHqXsADeSgsY/Ye3g4O1WgVCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAp4I2fzt4cBgTMQ9rT3XJL1IAcbAldYVPrRydU7jBYgAiEAz3BvQX5MPWVqurhSM9sgbrOHcP1Y2pocrnkUSjuOls0="}]}},"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":"https://registry.npmjs.org/xml/-/xml-0.0.4.tgz","integrity":"sha512-YUDsHs0uIRf+kdZtEj7KnLJqTqk4cY6arV3B60m81GDXbzyxAVPMRnJntIdkU1WQ6bYV/TOy2m5mIB7vpoZ20A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPuH3491temlMx9LMxGlpaFTqr7asJ+AJI3uq783JaTAiBxd09uJc2BOOF4Pb9+EFEq1E2jO6JYaRn/rSEuyOmCFQ=="}]}},"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":"https://registry.npmjs.org/xml/-/xml-0.0.5.tgz","integrity":"sha512-JgHMzPDF4goQ9GEPWLcKoTVvhs8wlGRv3B0foYUL9okgwEgRTzI24Wn2bEdIucc4+sSY/K5TKEhKSQG1GOwlag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHP7uwBbIqSYbF/24BlbupUdjldZ2yXbZBP3FxO3/xpkAiEAxEXqjQy2WNtiLGtIQqpYDs2N4mam+iSg1yuheVkeWBA="}]},"directories":{}},"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":"https://registry.npmjs.org/xml/-/xml-0.0.7.tgz","integrity":"sha512-1CaZhrV7mXbMLd19Ro7BazpP7uQEAfJ4lA4qHgWio6WsDVLgBBv4YZE/OYfTab5KAOjC1tg/7sWunQvvJUiqjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIcDsEzhSZpXKr05zdsYxLf6t++o05mFm0CisDxj068AIhAJHn/Syv6B7hznkGT5XCNscNUcJoQ27dqVVgwhldn81n"}]},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{}},"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":"https://registry.npmjs.org/xml/-/xml-0.0.8.tgz","integrity":"sha512-SANGTmvdNH2CTVPOlfVtmnUuCpA0R9SZHaomf9wOIUmo8rz+8fTQoOqBVpoggqC50XK6cYdqL/CMmqFXE5AeNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDh3ErcwsXegH7MIjhzxca90pZB4IMBeLPgsd6Y0ZrmWgIhAL7r7HnCmZf035mubOItx8HswWRptCHJ9RF+1rbLJqfs"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{}},"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":"https://registry.npmjs.org/xml/-/xml-0.0.9.tgz","integrity":"sha512-IA2Hdxp/1nChqIyp7Btp/PeZ5Hq2l2KtyFC17JQlGXH5BQ7KZq1nXOcwN0YHvT+OFwyuSiqsORxIajvTYRm0kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEBNCOF/ofvVEt6Z594fIAylqCTocz+Swl/I0WZZ7mx0AiBFiHUfW7yAlVTi+mAF41J78GtQ0jQGGG9qyci2DYAn1Q=="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{}},"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":"https://registry.npmjs.org/xml/-/xml-0.0.10.tgz","integrity":"sha512-BG1y2tpzVMRzO8GGN5B9avGsI5xgZeHjxLLyXvz12fqOD4Efm3GeBeCN2bzKV5mwuono6OJpSxBHMDOQY0dtrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNi0qcOAUiRpQdwPCK61aHIqB3owl39fveaxyArzRQHAIgET/uMjsiSAtllGlyjBrU56z5AY9XkkK62yWNkowulHQ="}]},"_from":".","_npmVersion":"1.3.13","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{}},"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":"https://registry.npmjs.org/xml/-/xml-0.0.12.tgz","integrity":"sha512-vXz2nTtS+bQYemYFzbTxjlmdMOmIhmP+frdnJi3M2Ul/ezrwcW9IYwiwqvecY3PtHNXGKBDrA+DNAEky0zY7Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0/As+fnD6rQXi2CQK9EJiz34c3AdRbI1Jb3Vwl/UcOQIgbN3regCrk0XK46E6FHdnF5UfX6Rp+v5sHaYr9dhQBXw="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"directories":{}},"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":"https://registry.npmjs.org/xml/-/xml-1.0.0.tgz","integrity":"sha512-NpTtJIGjrofxyTNuc497ZTI/LfhWMSTWbCnAQ8w7DZLgIwn7pWjHNcOhghCEPgzdrwXSZJNxh/dHjunId2jhNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCe+k67GfJUgdy8ojj7xKQaB2Fp/QK5PlCWbboT+zokIwIgJgEcuMLE9gsbJSg5nnp8Agg1/r5IyWlifB/tPxARWfU="}]},"directories":{}},"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":"https://registry.npmjs.org/xml/-/xml-1.0.1.tgz","integrity":"sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjBJxUjMslF7TdEllyALZ0bfJXKDMaAi9HyXnjioWvbAiEArxfN+0XrjGICKczywHBWXP+JKIwLS9kcOSTS9x8kQNo="}]},"maintainers":[{"name":"dylang","email":"dylang@gmail.com"},{"name":"erisds","email":"erisds@gmail.com"}],"directories":{}}},"maintainers":[{"email":"github.erisds@gmail.com","name":"erisds"},{"email":"dylang@gmail.com","name":"dylang"}],"time":{"modified":"2023-06-01T22:09:59.285Z","created":"2011-04-11T03:37:08.185Z","0.0.2":"2011-04-11T03:37:08.770Z","0.0.3":"2011-04-11T03:55:29.103Z","0.0.4":"2011-04-13T03:56:36.490Z","0.0.5":"2011-05-08T23:57:24.247Z","0.0.6":"2011-07-21T02:45:52.017Z","0.0.7":"2011-10-28T19:18:14.498Z","0.0.8":"2013-09-15T21:48:38.304Z","0.0.9":"2013-11-08T14:03:50.843Z","0.0.10":"2013-11-08T16:36:29.273Z","0.0.12":"2014-01-28T15:29:16.819Z","1.0.0":"2014-09-26T22:30:23.340Z","1.0.1":"2016-01-31T01:33:20.949Z"},"author":{"name":"Dylan Greene","url":"https://github.com/dylang"},"repository":{"type":"git","url":"git+ssh://git@github.com/dylang/node-xml.git"},"users":{"esperluette":true,"victorzimmer":true,"magemagic":true,"tudou":true,"dofy":true,"nachbar90":true,"smithjke":true,"n0n1":true,"oneinme":true,"luuhoangnam":true,"nfd":true,"and-":true,"jesusgoku":true,"stpettersens":true,"aahz":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},"readme":"# xml [](http://travis-ci.org/dylang/node-xml)\n\n[](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}) === '1'\nxml({nested: [{ keys: [{ fun: 'hi' }]}]}) === 'hi'\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]}) === '1'\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: !\"}}) === '!]]>'\n```\n\nMixed together:\n```js\nxml({a: { _attr: { attr:'hi'}, _cdata: \"I'm not escaped\" }}) === ''\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: \ndata: Transformers\ndata: GI Joe\ndata: \n He-man\n \ndata: \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: 'test'\n\nxml([ { a: 'test' }], { declaration: { standalone: 'yes', encoding: 'UTF-16' }})\n//result: 'test'\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//http://www.google.com/search?aq=f&sourceid=chrome&ie=UTF-8&q=opower\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: \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: TransformersGI JoeHe-man\nconsole.log(XML(example3, true));\n/*\nresult:\n\n Transformers\n GI Joe\n He-man\n\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\n Transformers\n GI Joe\n He-man\n\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: 'Master of the Universe!'} } ] } ] } ];\nconsole.log(XML(example5, true));\n/*\nresult:\n\n Transformers\n \n GI Joe\n \n \n He-man\n Master of the Universe!]]>\n \n\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","readmeFilename":"readme.md","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder","json","simple"],"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"}],"bugs":{"url":"http://github.com/dylang/node-xml/issues"},"license":"MIT"}