{"_id":"xml-parser","_rev":"4224806","name":"xml-parser","description":"the little xml parser that could","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"time":{"modified":"2026-03-12T00:27:05.000Z","created":"2014-02-14T20:49:22.622Z","1.2.1":"2015-06-05T13:31:54.853Z","1.2.0":"2014-10-21T06:42:22.344Z","1.1.0":"2014-10-04T22:29:30.175Z","1.0.0":"2014-08-25T23:58:53.646Z","0.1.0":"2014-06-27T01:34:46.912Z","0.0.1":"2014-02-14T20:49:22.622Z"},"users":{},"repository":{"type":"git","url":"git://github.com/segmentio/xml-parser"},"versions":{"1.2.1":{"name":"xml-parser","version":"1.2.1","repository":{"type":"git","url":"git://github.com/segmentio/xml-parser"},"description":"the little xml parser that could","scripts":{"test":"make test"},"keywords":["xml","sucks"],"dependencies":{"debug":"^2.2.0"},"devDependencies":{"matcha":"^0.6.0","mocha":"^2.2.5","should":"^6.0.3"},"license":"MIT","bugs":{"url":"https://github.com/segmentio/xml-parser/issues"},"homepage":"https://github.com/segmentio/xml-parser","_id":"xml-parser@1.2.1","_shasum":"c31f4c34f2975db82ad013222120592736156fcd","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"segment","email":"tj@segment.io"},"maintainers":[{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"dist":{"shasum":"c31f4c34f2975db82ad013222120592736156fcd","size":2173,"noattachment":false,"key":"/xml-parser/-/xml-parser-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-parser/download/xml-parser-1.2.1.tgz"},"directories":{},"publish_time":1433511114853,"_hasShrinkwrap":false,"_cnpm_publish_time":1433511114853,"_cnpmcore_publish_time":"2021-12-16T17:57:05.585Z"},"1.2.0":{"name":"xml-parser","version":"1.2.0","repository":{"type":"git","url":"git://github.com/segmentio/xml-parser"},"description":"the little xml parser that could","keywords":["xml","sucks"],"dependencies":{"debug":"~0.7.4"},"devDependencies":{"mocha":"*","should":"*","matcha":"~0.4.1"},"license":"MIT","bugs":{"url":"https://github.com/segmentio/xml-parser/issues"},"homepage":"https://github.com/segmentio/xml-parser","_id":"xml-parser@1.2.0","dist":{"shasum":"a0cf4c61a43c505f343aee1ee300910f987f0c90","size":6226,"noattachment":false,"key":"/xml-parser/-/xml-parser-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-parser/download/xml-parser-1.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"segment","email":"tj@segment.io"},"maintainers":[{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1413873742344,"_hasShrinkwrap":false,"_cnpm_publish_time":1413873742344,"_cnpmcore_publish_time":"2021-12-16T17:57:05.780Z"},"1.1.0":{"name":"xml-parser","version":"1.1.0","repository":{"type":"git","url":"git://github.com/segmentio/xml-parser"},"description":"the little xml parser that could","keywords":["xml","sucks"],"dependencies":{"debug":"~0.7.4"},"devDependencies":{"mocha":"*","should":"*","matcha":"~0.4.1"},"license":"MIT","bugs":{"url":"https://github.com/segmentio/xml-parser/issues"},"homepage":"https://github.com/segmentio/xml-parser","_id":"xml-parser@1.1.0","_shasum":"3da08e1d8c7f732f1e65aaf7c9ce4e03938cc75b","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"segment","email":"tj@segment.io"},"maintainers":[{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"dist":{"shasum":"3da08e1d8c7f732f1e65aaf7c9ce4e03938cc75b","size":6093,"noattachment":false,"key":"/xml-parser/-/xml-parser-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-parser/download/xml-parser-1.1.0.tgz"},"directories":{},"publish_time":1412461770175,"_hasShrinkwrap":false,"_cnpm_publish_time":1412461770175,"_cnpmcore_publish_time":"2021-12-16T17:57:06.034Z"},"1.0.0":{"name":"xml-parser","version":"1.0.0","repository":{"type":"git","url":"git://github.com/segmentio/xml-parser"},"description":"the little xml parser that could","keywords":["xml","sucks"],"dependencies":{"debug":"~0.7.4"},"devDependencies":{"mocha":"*","should":"*","matcha":"~0.4.1"},"license":"MIT","bugs":{"url":"https://github.com/segmentio/xml-parser/issues"},"homepage":"https://github.com/segmentio/xml-parser","_id":"xml-parser@1.0.0","_shasum":"f64e54d81b5a6e51d7c2592a4e9ef871fcfa9232","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"dist":{"shasum":"f64e54d81b5a6e51d7c2592a4e9ef871fcfa9232","size":6232,"noattachment":false,"key":"/xml-parser/-/xml-parser-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-parser/download/xml-parser-1.0.0.tgz"},"directories":{},"publish_time":1409011133646,"_hasShrinkwrap":false,"_cnpm_publish_time":1409011133646,"_cnpmcore_publish_time":"2021-12-16T17:57:06.255Z"},"0.1.0":{"name":"xml-parser","version":"0.1.0","repository":{"type":"git","url":"git://github.com/segmentio/xml-parser"},"description":"the little xml parser that could","keywords":["xml","sucks"],"dependencies":{"debug":"~0.7.4"},"devDependencies":{"mocha":"*","should":"*","matcha":"~0.4.1"},"license":"MIT","bugs":{"url":"https://github.com/segmentio/xml-parser/issues"},"homepage":"https://github.com/segmentio/xml-parser","_id":"xml-parser@0.1.0","dist":{"shasum":"deb3572272fd3349dda9e6f25423df1644559c9d","size":6183,"noattachment":false,"key":"/xml-parser/-/xml-parser-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-parser/download/xml-parser-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1403832886912,"_hasShrinkwrap":false,"_cnpm_publish_time":1403832886912,"_cnpmcore_publish_time":"2021-12-16T17:57:06.485Z"},"0.0.1":{"name":"xml-parser","version":"0.0.1","repository":{"type":"git","url":"git://github.com/segmentio/xml-parser"},"description":"the little xml parser that could","keywords":["xml","sucks"],"dependencies":{"debug":"~0.7.4"},"devDependencies":{"mocha":"*","should":"*"},"license":"MIT","bugs":{"url":"https://github.com/segmentio/xml-parser/issues"},"homepage":"https://github.com/segmentio/xml-parser","_id":"xml-parser@0.0.1","dist":{"shasum":"e16e308753ec983d6011aadf860e05c02bc5f1e8","size":5747,"noattachment":false,"key":"/xml-parser/-/xml-parser-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/xml-parser/download/xml-parser-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1392410962622,"_hasShrinkwrap":false,"_cnpm_publish_time":1392410962622,"_cnpmcore_publish_time":"2021-12-16T17:57:06.698Z"}},"readme":"\n# xml-parser\n\n  Simple non-compiant XML parser because we just need to parse some basic responses and libxml takes forever to compile :D you probably don't want to use this unless you also have similar needs.\n\n## Installation\n\n```\n$ npm install xml-parser\n```\n\n## Example\n\n JavaScript:\n\n```js\nvar fs = require('fs');\nvar parse = require('xml-parser');\nvar xml = fs.readFileSync('examples/developerforce.xml', 'utf8');\nvar inspect = require('util').inspect;\n\nvar obj = parse(xml);\nconsole.log(inspect(obj, { colors: true, depth: Infinity }));\n```\n\nXML:\n\n```xml\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n <soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"\n   xmlns=\"urn:enterprise.soap.sforce.com\">\n   <soapenv:Body>\n      <createResponse>\n         <result>\n            <id>003D000000OY9omIAD</id>\n            <success>true</success>\n         </result>\n         <result>\n            <id>001D000000HTK3aIAH</id>\n            <success>true</success>\n         </result>\n      </createResponse>\n   </soapenv:Body>\n </soapenv:Envelope>\n```\n\nYields:\n\n```js\n{ declaration: { attributes: { version: '1.0', encoding: 'utf-8' } },\n  root:\n   { name: 'soapenv:Envelope',\n     attributes:\n      { 'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/',\n        xmlns: 'urn:enterprise.soap.sforce.com' },\n     children:\n      [ { name: 'soapenv:Body',\n          attributes: {},\n          children:\n           [ { name: 'createResponse',\n               attributes: {},\n               children:\n                [ { name: 'result',\n                    attributes: {},\n                    children:\n                     [ { name: 'id',\n                         attributes: {},\n                         children: [],\n                         content: '003D000000OY9omIAD' },\n                       { name: 'success', attributes: {}, children: [], content: 'true' } ],\n                    content: '' },\n                  { name: 'result',\n                    attributes: {},\n                    children:\n                     [ { name: 'id',\n                         attributes: {},\n                         children: [],\n                         content: '001D000000HTK3aIAH' },\n                       { name: 'success', attributes: {}, children: [], content: 'true' } ],\n                    content: '' } ],\n               content: '' } ],\n          content: '' } ],\n     content: '' } }\n```\n\n# License\n\n  MIT","_attachments":{},"homepage":"https://github.com/segmentio/xml-parser","bugs":{"url":"https://github.com/segmentio/xml-parser/issues"},"license":"MIT"}