{"_id":"xml-parser","_rev":"31-2a7318727bfc84e948d02c49882add99","name":"xml-parser","description":"the little xml parser that could","dist-tags":{"latest":"1.2.1"},"versions":{"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","tarball":"https://registry.npmjs.org/xml-parser/-/xml-parser-0.0.1.tgz","integrity":"sha512-NR0M7CjUSfKS7fEwRMhPOcHKX+rx0JUfWNpofIe/gFlWVTRiifSdpAzl0oHokpdHG9EXD+wMVegtme7rkfhDjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRWvMoQyK+BtQMym9+oqCWCi2heovgoeCVb7Ld7lLcuAIhAPwTI5EQ8ysJOvOKRoY3uvaauXjmekgc2vPCYOYlN5gL"}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/xml-parser/-/xml-parser-0.1.0.tgz","integrity":"sha512-9OgvxACjJhTt8gdLIFjd1xOuQoPKfJXlxoqaA/sC+lZ1SpA7Rh1eGXkxJJoDAlxWDH+w9P1ja2UdGFMNO9pvrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFNZpYmJ+VVyjYwXpjOFAnAXYVM/5qiB/WsvQMRgHRBQAiBI8jFFPWEGmbMW58X3TIelema54xLI1QCVc3K4XjPujQ=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"segment","email":"tj@segment.io"}],"directories":{}},"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":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"segment","email":"tj@segment.io"}],"dist":{"shasum":"f64e54d81b5a6e51d7c2592a4e9ef871fcfa9232","tarball":"https://registry.npmjs.org/xml-parser/-/xml-parser-1.0.0.tgz","integrity":"sha512-2MBHS/K2DPw5cc66+3hvHqffKCFdE+v/VQHm8dejWwSITTfDrKp2MLpbiqs/vjW56yZv4rLCAHDaaoC3zBEBpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIATMMEOetFJYpo7hpPkGLV7/y7cRK6ASG01DzakR6hmtAiEAug+32gXzu9cpqwMjWHqukUJim3/yfHDBFRfpJa854wQ="}]},"directories":{}},"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":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"segment","email":"tj@segment.io"}],"dist":{"shasum":"3da08e1d8c7f732f1e65aaf7c9ce4e03938cc75b","tarball":"https://registry.npmjs.org/xml-parser/-/xml-parser-1.1.0.tgz","integrity":"sha512-iVcpftTRptiWA7LSME61rky20U1jJ7GXZJrNZhlojCswo3oBVs2AIeGJ4c4rRdDItCbwWcKk/kPezNpC0XeNUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE8XwIHb2MRmy/+Cy8AW3aLP9BWrVzVgnPtESDWtpEsrAiBGSrxA5Gu4nsUJJR6SDkI3TwPp/uXkiPqgsz6m5MMtAA=="}]},"directories":{}},"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","tarball":"https://registry.npmjs.org/xml-parser/-/xml-parser-1.2.0.tgz","integrity":"sha512-CT/UqlPR23dQ7Dfh34AK9n941p7wXDQ4mGGoUSPUtVAce+CuAZvTyJxkw1ts4IZeivd7cFe4HFZcdYak9JWqAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzOSpH9B/cnIB5H+VH27rVX8jqZqg2Fd83zqUjrzNbnAIhAKQdVrxkNMy96QuzrBUT9z3EIxQx1X4BPmVKtH4tojb6"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"segment","email":"tj@segment.io"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"segment","email":"tj@segment.io"}],"directories":{}},"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":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"segment","email":"tj@segment.io"}],"dist":{"shasum":"c31f4c34f2975db82ad013222120592736156fcd","tarball":"https://registry.npmjs.org/xml-parser/-/xml-parser-1.2.1.tgz","integrity":"sha512-lPUzzmS0zdwcNtyNndCl2IwH172ozkUDqmfmH3FcuDzHVl552Kr6oNfsvteHabqTWhsrMgpijqZ/yT7Wo1/Pzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXKC1wS4MMMlz4RO4VuWRUcVfYlVC3BGj+9no3imMEnAiEAg2tJF8+jIx6jxcydWEebU7omSQD4h6myLmYf1k98Q2A="}]},"directories":{}}},"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","maintainers":[{"name":"segment-admin","email":"tools+npm@segment.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"time":{"modified":"2022-06-29T05:36:50.024Z","created":"2014-02-14T20:49:20.490Z","0.0.1":"2014-02-14T20:49:22.622Z","0.1.0":"2014-06-27T01:34:46.912Z","1.0.0":"2014-08-25T23:58:53.646Z","1.1.0":"2014-10-04T22:29:30.175Z","1.2.0":"2014-10-21T06:42:22.344Z","1.2.1":"2015-06-05T13:31:54.853Z"},"readmeFilename":"Readme.md","repository":{"type":"git","url":"git://github.com/segmentio/xml-parser"},"homepage":"https://github.com/segmentio/xml-parser","keywords":["xml","sucks"],"bugs":{"url":"https://github.com/segmentio/xml-parser/issues"},"license":"MIT","users":{"tunnckocore":true,"jerome.d.russ":true,"tridnguyen":true,"dofy":true,"esenor":true,"rochejul":true,"ivan.marquez":true,"diegorbaquero":true,"wozhizui":true,"slulego":true}}