{"_id":"xmlslicer","_rev":"7-bb4b52d87d07c03b6520258e8de852df","name":"xmlslicer","description":"Advanced XML Splitting and JSON conversion tools","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"xmlslicer","description":"Advanced XML Splitting and JSON conversion tools","main":"./index","author":{"name":"Damon Oehlman"},"version":"0.0.1","engines":{"node":"0.4.x || 0.5.x"},"dependencies":{"libxmljs":"0.4.x"},"repository":{"type":"git","url":"git://github.com/DamonOehlman/xmlslicer.git"},"bugs":{"url":"https://github.com/DamonOehlman/xmlslicer/issues"},"licenses":[{"type":"MIT","url":"http://github.com/DamonOehlman/xmlslicer/raw/LICENCE"}],"_npmJsonOpts":{"file":"/Users/damo/.npm/xmlslicer/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"xmlslicer@0.0.1","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"a9d50d8d2083f1654b47b61bd51c65ecb0035112","tarball":"https://registry.npmjs.org/xmlslicer/-/xmlslicer-0.0.1.tgz","integrity":"sha512-bZgAvrna2dqABHkf+3h7fRswnHA+8pZidIPdtvNXMqxPJE5qmTnQOd8ASWbqgWZ7bHMBxJyILFQpiFWfa4nZjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+9aDZYbSAvYNM97MHaPfAAfQq7oNUYSdLYM2/S6vUdAiEAvSXNZh1rM2mUjJ/dr1R4BtsIA1NyxlLQQViMltwTU5s="}]},"maintainers":[{"name":"damonoehlman","email":"damon.oehlman@sidelab.com"}]},"0.0.2":{"name":"xmlslicer","description":"Advanced XML Splitting and JSON conversion tools","author":{"name":"Damon Oehlman","email":"damon.oehlman@gmail.com"},"version":"0.0.2","dependencies":{"libxmljs":"0.8.x"},"repository":{"type":"git","url":"https://bitbucket.org/DamonOehlman/xmlslicer.git"},"bugs":{"url":"https://bitbucket.org/DamonOehlman/xmlslicer/issues"},"main":"index.js","directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["xml","slice","fragment"],"license":"MIT","readme":"# xmlslicer\n\nThis is utility designed for use with [NodeJS](http://nodejs.org/) scripts to assist with liberating data from XML feeds and files and converting them into useful JSON snippets.\n\nUsing [libxmljs](https://github.com/polotek/libxmljs) as the core XML processing tool, xmlslicer is designed to help you extract the pieces of useful data from XML and leaving the rest.  It is designed to be used by people with a good handle on [XPath](http://www.w3.org/TR/xpath/) as that is the core technique used to extract the _useful bits_ from the XML.\n\n## Installing\n\nFor the moment, you are probably best cloning this repository into the `node_modules` directory of a project that you want to use it in.  I'll eventually get around to adding it to npm, promise...\n\n## Example Use\n\n```js\nvar xmlslicer = require('xmlslicer'),\n    slicer;\n    \nslicer = xmlslicer.run({\n    type: 'typeName',\n    file: 'where/your/xml/lives.xml',\n    regex: /\\<Item(.|\\n|\\r)*?\\<\\/Item\\>/i,\n    idExpr: '@ItemID',\n\n    template: {\n        id: '@ItemID',\n        name: 'req://Item/@Name',\n        description: '//Item/Description',\n\n        // initialise the position\n        pos: {\n            lat: 'float://Item/@Latitude',\n            lon: 'float://Item/@Longitude'\n        }\n    }\n});\n\nslicer.on('item', function(index, xmlDoc, itemData) {\n});\n\nslicer.on('parsed', function(index, xmlDoc, itemData) {\n});\n\nslicer.on('parseError', function(message) {\n    console.log(message);\n});\n```\n\n## Custom Expressions and Lookups\n\nTo be completed\n\n## Custom Extraction Functions\n\nTo be completed","readmeFilename":"README.md","_id":"xmlslicer@0.0.2","dist":{"shasum":"49c56629484b98d2f48cc81edbe44a9e8d711aee","tarball":"https://registry.npmjs.org/xmlslicer/-/xmlslicer-0.0.2.tgz","integrity":"sha512-vz61rYYxyHwVojrSFMFRKbs+qr+nTYcn0EHqBufBcn2XytJEr8Ve/ADwc5UMSU4bU6cQcltFiAxtTKU8IY0D2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf2n1FHAOLnPRYqSLpMyyEQ1ezoQ61zreORnLXonRcDgIgaAb9bm7h/blGwddEMKkpx/M4US5ANoo+pEYFdf1Yp3k="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"damonoehlman","email":"damon.oehlman@gmail.com"},"maintainers":[{"name":"damonoehlman","email":"damon.oehlman@sidelab.com"}]}},"maintainers":[{"name":"damonoehlman","email":"damon.oehlman@sidelab.com"}],"time":{"modified":"2022-06-29T05:43:10.494Z","created":"2011-09-29T00:06:17.893Z","0.0.1":"2011-09-29T00:06:19.923Z","0.0.2":"2013-10-09T23:05:21.349Z"},"author":{"name":"Damon Oehlman","email":"damon.oehlman@gmail.com"},"repository":{"type":"git","url":"https://bitbucket.org/DamonOehlman/xmlslicer.git"}}