{"_id":"xml","_rev":"80-6186897fd3bb2e493f4250ea1f579283","name":"xml","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.2":{"name":"xml","version":"0.0.2","author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"_id":"xml@0.0.2","contributors":[{"name":"Dylan Greene","email":"dylang@gmail.com"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues","email":"dylang@gmail.com"},"dist":{"shasum":"54cb1b704beee9dbbc894ca486be45e6c3f20762","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.2.tgz","integrity":"sha512-+gWLDvYrEjbqKNKZPdTA3/fFVtR4I5ep+AFxwgWmPCt7QTleNAoZhIV16t6cfcPUcC/E1PlApSXh6Fxn2AdcqQ==","signatures":[{"sig":"MEYCIQCU+pytM8TKEQB/hZgfhb+f6YQ0Y9IZ/mx07LFueNyBxAIhAPAVl/IaKuiyO7OcZ3zavlQE+WXxXDvnMzMBG6fD+2Gx","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","files":[""],"engines":{"node":">=0.4.0"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/dylang/node-xml.git","type":"git"},"_npmVersion":"0.3.18","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Tests and examples.","directories":{"lib":"./lib"},"_nodeVersion":"v0.4.2","dependencies":{"logging":">= 2.0.0"},"_defaultsLoaded":true,"_engineSupported":true},"0.0.3":{"name":"xml","version":"0.0.3","keywords":["xml","create","builder"],"author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"_id":"xml@0.0.3","contributors":[{"name":"Dylan Greene","email":"dylang@gmail.com"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues","email":"dylang@gmail.com"},"dist":{"shasum":"6655a81c2c036f6d263c4a4ef5494307b1e60c63","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.3.tgz","integrity":"sha512-0nGXxVPTMS/498N+PLudXmBBKc9Fl/piGKFX++Qxs3YhyhP9DADZg/ZnuOhnEmHqXsADeSgsY/Ye3g4O1WgVCQ==","signatures":[{"sig":"MEUCIAp4I2fzt4cBgTMQ9rT3XJL1IAcbAldYVPrRydU7jBYgAiEAz3BvQX5MPWVqurhSM9sgbrOHcP1Y2pocrnkUSjuOls0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","files":[""],"engines":{"node":">=0.4.0"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/dylang/node-xml.git","type":"git"},"_npmVersion":"0.3.18","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Tests and examples.","directories":{"lib":"./lib"},"_nodeVersion":"v0.4.2","dependencies":{"logging":">= 2.0.0"},"_defaultsLoaded":true,"_engineSupported":true},"0.0.4":{"name":"xml","version":"0.0.4","keywords":["xml","create","builder"],"author":{"name":"Dylan Greene","email":"dylang@gmail.com"},"_id":"xml@0.0.4","contributors":[{"name":"Dylan Greene","email":"dylang@gmail.com"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues","email":"dylang@gmail.com"},"dist":{"shasum":"20f1e57d25d97577de1c7ece2db353185db66fa3","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.4.tgz","integrity":"sha512-YUDsHs0uIRf+kdZtEj7KnLJqTqk4cY6arV3B60m81GDXbzyxAVPMRnJntIdkU1WQ6bYV/TOy2m5mIB7vpoZ20A==","signatures":[{"sig":"MEQCIDPuH3491temlMx9LMxGlpaFTqr7asJ+AJI3uq783JaTAiBxd09uJc2BOOF4Pb9+EFEq1E2jO6JYaRn/rSEuyOmCFQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","files":[""],"engines":{"node":">=0.4.0"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/dylang/node-xml.git","type":"git"},"_npmVersion":"0.3.18","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{"lib":"./lib"},"_nodeVersion":"v0.4.2","dependencies":{"logging":">= 2.0.0"},"_defaultsLoaded":true,"_engineSupported":true},"0.0.5":{"name":"xml","version":"0.0.5","keywords":["xml","create","builder"],"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"_id":"xml@0.0.5","contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues","email":"dylang@gmail.com"},"dist":{"shasum":"cff2a56ec1dd5efc121de91b31f50c83816d0853","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.5.tgz","integrity":"sha512-JgHMzPDF4goQ9GEPWLcKoTVvhs8wlGRv3B0foYUL9okgwEgRTzI24Wn2bEdIucc4+sSY/K5TKEhKSQG1GOwlag==","signatures":[{"sig":"MEUCIHP7uwBbIqSYbF/24BlbupUdjldZ2yXbZBP3FxO3/xpkAiEAxEXqjQy2WNtiLGtIQqpYDs2N4mam+iSg1yuheVkeWBA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","engines":{"node":">=0.4.0"},"scripts":{"test":"nodeunit test"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/dylang/node-xml.git","type":"git"},"_npmVersion":"1.0.3","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{},"_nodeVersion":"v0.4.7","dependencies":{},"_defaultsLoaded":true,"devDependencies":{"logging":"*","nodeunit":"*"},"_engineSupported":true},"0.0.7":{"name":"xml","version":"0.0.7","keywords":["xml","create","builder"],"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"_id":"xml@0.0.7","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"},{"url":"felix@debuggable.com","name":"Felix Geisendrfer"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues","email":"dylang@gmail.com"},"dist":{"shasum":"1c07eab653658ab207369a905a463f2d3f605f8c","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.7.tgz","integrity":"sha512-1CaZhrV7mXbMLd19Ro7BazpP7uQEAfJ4lA4qHgWio6WsDVLgBBv4YZE/OYfTab5KAOjC1tg/7sWunQvvJUiqjw==","signatures":[{"sig":"MEYCIQCIcDsEzhSZpXKr05zdsYxLf6t++o05mFm0CisDxj068AIhAJHn/Syv6B7hznkGT5XCNscNUcJoQ27dqVVgwhldn81n","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","engines":{"node":">=0.4.0"},"scripts":{"test":"nodeunit test"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"git://github.com/dylang/node-xml.git","type":"git"},"_npmVersion":"1.0.103","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{},"_nodeVersion":"v0.5.10","dependencies":{},"_defaultsLoaded":true,"devDependencies":{"logging":"*","nodeunit":"*"},"_engineSupported":true},"0.0.8":{"name":"xml","version":"0.0.8","keywords":["xml","create","builder","json","simple"],"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"_id":"xml@0.0.8","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"},{"url":"felix@debuggable.com","name":"Felix Geisendrfer"},{"name":"Mithgol"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues"},"dist":{"shasum":"e7970d9e085ddf53e52df49ead8dc34b6aff0503","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.8.tgz","integrity":"sha512-SANGTmvdNH2CTVPOlfVtmnUuCpA0R9SZHaomf9wOIUmo8rz+8fTQoOqBVpoggqC50XK6cYdqL/CMmqFXE5AeNA==","signatures":[{"sig":"MEYCIQDh3ErcwsXegH7MIjhzxca90pZB4IMBeLPgsd6Y0ZrmWgIhAL7r7HnCmZf035mubOItx8HswWRptCHJ9RF+1rbLJqfs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/xml.js","_from":".","engines":{"node":">=0.4.0"},"scripts":{"test":"./node_modules/.bin/mocha --reporter spec"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"http://github.com/dylang/node-xml","type":"git"},"_npmVersion":"1.3.8","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0"}},"0.0.9":{"name":"xml","version":"0.0.9","keywords":["xml","create","builder","json","simple"],"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"_id":"xml@0.0.9","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"},{"url":"felix@debuggable.com","name":"Felix Geisendrfer"},{"name":"Mithgol"},{"url":"https://github.com/carolineBda","name":"carolineBda"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues"},"dist":{"shasum":"7ccc7334339d6e7eaea1013001e05abf46907028","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.9.tgz","integrity":"sha512-IA2Hdxp/1nChqIyp7Btp/PeZ5Hq2l2KtyFC17JQlGXH5BQ7KZq1nXOcwN0YHvT+OFwyuSiqsORxIajvTYRm0kg==","signatures":[{"sig":"MEQCIEBNCOF/ofvVEt6Z594fIAylqCTocz+Swl/I0WZZ7mx0AiBFiHUfW7yAlVTi+mAF41J78GtQ0jQGGG9qyci2DYAn1Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/xml.js","_from":".","engines":{"node":">=0.4.0"},"scripts":{"test":"./node_modules/.bin/mocha --reporter spec"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"http://github.com/dylang/node-xml","type":"git"},"_npmVersion":"1.3.13","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0"}},"0.0.10":{"name":"xml","version":"0.0.10","keywords":["xml","create","builder","json","simple"],"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"_id":"xml@0.0.10","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"},{"url":"felix@debuggable.com","name":"Felix Geisendrfer"},{"name":"Mithgol"},{"url":"https://github.com/carolineBda","name":"carolineBda"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues"},"dist":{"shasum":"2480d2c78a4c1a8533bc81f6b0e80f6a4a0f032f","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.10.tgz","integrity":"sha512-BG1y2tpzVMRzO8GGN5B9avGsI5xgZeHjxLLyXvz12fqOD4Efm3GeBeCN2bzKV5mwuono6OJpSxBHMDOQY0dtrQ==","signatures":[{"sig":"MEUCIQCNi0qcOAUiRpQdwPCK61aHIqB3owl39fveaxyArzRQHAIgET/uMjsiSAtllGlyjBrU56z5AY9XkkK62yWNkowulHQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/xml.js","_from":".","engines":{"node":">=0.4.0"},"scripts":{"test":"./node_modules/.bin/mocha --reporter spec"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"http://github.com/dylang/node-xml","type":"git"},"_npmVersion":"1.3.13","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{},"devDependencies":{"chai":"~1.7.2","mocha":"~1.12.0"}},"0.0.12":{"name":"xml","version":"0.0.12","keywords":["xml","create","builder","json","simple"],"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"_id":"xml@0.0.12","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"},{"url":"felix@debuggable.com","name":"Felix Geisendrfer"},{"name":"Mithgol"},{"url":"https://github.com/carolineBda","name":"carolineBda"},{"name":"Eric Vantillard https://github.com/evantill"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues"},"dist":{"shasum":"f08b347109912be00285785f46f15ad8e50a5f67","tarball":"https://registry.npmjs.org/xml/-/xml-0.0.12.tgz","integrity":"sha512-vXz2nTtS+bQYemYFzbTxjlmdMOmIhmP+frdnJi3M2Ul/ezrwcW9IYwiwqvecY3PtHNXGKBDrA+DNAEky0zY7Xg==","signatures":[{"sig":"MEUCIQC0/As+fnD6rQXi2CQK9EJiz34c3AdRbI1Jb3Vwl/UcOQIgbN3regCrk0XK46E6FHdnF5UfX6Rp+v5sHaYr9dhQBXw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/xml.js","_from":".","engines":{"node":">=0.4.0"},"scripts":{"test":"mocha --reporter spec"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"licenses":[{"url":"http://github.com/dylang/node-xml/raw/master/LICENSE","type":"MIT"}],"repository":{"url":"http://github.com/dylang/node-xml","type":"git"},"_npmVersion":"1.3.24","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{},"devDependencies":{"chai":"~1.8.1","mocha":"~1.17.1"}},"1.0.0":{"name":"xml","version":"1.0.0","keywords":["xml","create","builder","json","simple"],"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"license":"MIT","_id":"xml@1.0.0","maintainers":[{"name":"dylang","email":"dylang@gmail.com"}],"contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"},{"url":"felix@debuggable.com","name":"Felix Geisendrfer"},{"name":"Mithgol"},{"url":"https://github.com/carolineBda","name":"carolineBda"},{"name":"Eric Vantillard https://github.com/evantill"},{"name":"Sean Dwyer https://github.com/reywood"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues"},"dist":{"shasum":"de3ee912477be2f250b60f612f34a8c4da616efe","tarball":"https://registry.npmjs.org/xml/-/xml-1.0.0.tgz","integrity":"sha512-NpTtJIGjrofxyTNuc497ZTI/LfhWMSTWbCnAQ8w7DZLgIwn7pWjHNcOhghCEPgzdrwXSZJNxh/dHjunId2jhNQ==","signatures":[{"sig":"MEUCIQCe+k67GfJUgdy8ojj7xKQaB2Fp/QK5PlCWbboT+zokIwIgJgEcuMLE9gsbJSg5nnp8Agg1/r5IyWlifB/tPxARWfU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/xml.js","_from":".","_shasum":"de3ee912477be2f250b60f612f34a8c4da616efe","gitHead":"e46f9ccb0f022a777f334e7bc5e5000f50660c2a","scripts":{"test":"mocha --reporter spec"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"repository":{"url":"http://github.com/dylang/node-xml","type":"git"},"_npmVersion":"2.1.0","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{},"_nodeVersion":"0.10.32","devDependencies":{"chai":"~1.9.0","mocha":"~1.21.4"}},"1.0.1":{"name":"xml","version":"1.0.1","keywords":["xml","create","builder","json","simple"],"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"license":"MIT","_id":"xml@1.0.1","maintainers":[{"name":"dylang","email":"dylang@gmail.com"},{"name":"erisds","email":"erisds@gmail.com"}],"contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"},{"url":"felix@debuggable.com","name":"Felix Geisendrfer"},{"name":"Mithgol"},{"url":"https://github.com/carolineBda","name":"carolineBda"},{"name":"Eric Vantillard https://github.com/evantill"},{"name":"Sean Dwyer https://github.com/reywood"}],"homepage":"http://github.com/dylang/node-xml","bugs":{"url":"http://github.com/dylang/node-xml/issues"},"dist":{"shasum":"78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5","tarball":"https://registry.npmjs.org/xml/-/xml-1.0.1.tgz","integrity":"sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==","signatures":[{"sig":"MEUCIBjBJxUjMslF7TdEllyALZ0bfJXKDMaAi9HyXnjioWvbAiEArxfN+0XrjGICKczywHBWXP+JKIwLS9kcOSTS9x8kQNo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/xml.js","_from":".","_shasum":"78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5","gitHead":"c03b84bc1da9251f04db65428c8c341e51d0ff72","scripts":{"test":"ava"},"_npmUser":{"name":"dylang","email":"dylang@gmail.com"},"repository":{"url":"git+ssh://git@github.com/dylang/node-xml.git","type":"git"},"_npmVersion":"2.14.16","description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","directories":{},"_nodeVersion":"4.2.1","devDependencies":{"ava":"^0.11.0"}}},"time":{"created":"2011-04-11T03:37:08.185Z","modified":"2025-10-13T17:09:53.012Z","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"},"bugs":{"url":"http://github.com/dylang/node-xml/issues"},"author":{"url":"https://github.com/dylang","name":"Dylan Greene"},"license":"MIT","homepage":"http://github.com/dylang/node-xml","keywords":["xml","create","builder","json","simple"],"repository":{"url":"git+ssh://git@github.com/dylang/node-xml.git","type":"git"},"description":"Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples.","contributors":[{"url":"https://github.com/dylang","name":"Dylan Greene"},{"url":"https://github.com/dodo","name":"Dodo"},{"url":"felix@debuggable.com","name":"Felix Geisendrfer"},{"name":"Mithgol"},{"url":"https://github.com/carolineBda","name":"carolineBda"},{"name":"Eric Vantillard https://github.com/evantill"},{"name":"Sean Dwyer https://github.com/reywood"}],"maintainers":[{"name":"erisds","email":"github.erisds@gmail.com"},{"name":"dylang","email":"dylang@gmail.com"}],"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","readmeFilename":"readme.md","users":{"nfd":true,"aahz":true,"and-":true,"dofy":true,"n0n1":true,"holly":true,"panlw":true,"tudou":true,"nuwaio":true,"antanst":true,"f2ostie":true,"jybleau":true,"oneinme":true,"tsxuehu":true,"bpolonia":true,"lynscott":true,"smithjke":true,"tfentonz":true,"xiaoyiyu":true,"jesusgoku":true,"largepuma":true,"magemagic":true,"nachbar90":true,"rbecheras":true,"zuizuihao":true,"qqqppp9998":true,"rocket0191":true,"cycomachead":true,"esperluette":true,"flumpus-dev":true,"karlbateman":true,"luuhoangnam":true,"marcelitocs":true,"mccoyjordan":true,"shanemileham":true,"stpettersens":true,"victorzimmer":true,"bradleybossard":true}}