Coder Social home page Coder Social logo

meteor-xml2js's Introduction

xml2js smart package

Meteor smart package for xml2js node.js package providing a simple XML to JavaScript object converter.

Adding this package to your Meteor application adds xml2js object into the global scope.

Additionally, a fibers-enabled synchronous (blocking) parseStringSync function is provided on the xml2js object. Except for the callback, it takes the same parameters as parseString.

Server side only.

Installation

meteor add peerlibrary:xml2js

meteor-xml2js's People

Contributors

mitar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

meteor-xml2js's Issues

Example Request

Hi,
Thanks for your package.
Please add some example for using this package in meteor if possible.
Thanks again.

Error: Future resolved more than once

Hello

I Have been using your module for more than 6 months and now that i have updated Meteor from 1.0 to 1.0.3.1
and
peerlibrary:blocking upgraded from 0.4.2 to 0.5.1
peerlibrary:fs upgraded from 0.1.5 to 0.1.6
peerlibrary:xml2js upgraded from 0.4.4_3 to 0.4.4_4

I am getting this error.
If you could take a look at it I would appreciated it.

Thanks

I20150226-01:51:32.083(-6)? Exception while invoking method 'generaFacturaVPG' Error: Future resolved more than once
I20150226-01:51:32.086(-6)? at Object.Future.return (/Users/eduardomercado/.meteor/packages/meteor-tool/.1.0.41.19nv8s1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:154:10)
I20150226-01:51:32.086(-6)? at Object. (/Users/eduardomercado/.meteor/packages/meteor-tool/.1.0.41.19nv8s1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:242:16)
I20150226-01:51:32.086(-6)? at Parser. (/Users/eduardomercado/.meteor/packages/peerlibrary_xml2js/.0.4.4_4.1dnnp1i++os+web.browser+web.cordova/npm/node_modules/xml2js/lib/xml2js.js:384:20)
I20150226-01:51:32.087(-6)? at Parser.emit (events.js:95:17)
I20150226-01:51:32.087(-6)? at Object.onclosetag (/Users/eduardomercado/.meteor/packages/peerlibrary_xml2js/.0.4.4_4.1dnnp1i++os+web.browser+web.cordova/npm/node_modules/xml2js/lib/xml2js.js:348:26)
I20150226-01:51:32.087(-6)? at emit (/Users/eduardomercado/.meteor/packages/peerlibrary_xml2js/.0.4.4_4.1dnnp1i++os+web.browser+web.cordova/npm/node_modules/xml2js/node_modules/sax/lib/sax.js:615:33)
I20150226-01:51:32.087(-6)? at emitNode (/Users/eduardomercado/.meteor/packages/peerlibrary_xml2js/.0.4.4_4.1dnnp1i++os+web.browser+web.cordova/npm/node_modules/xml2js/node_modules/sax/lib/sax.js:620:3)
I20150226-01:51:32.087(-6)? at closeTag (/Users/eduardomercado/.meteor/packages/peerlibrary_xml2js/.0.4.4_4.1dnnp1i++os+web.browser+web.cordova/npm/node_modules/xml2js/node_modules/sax/lib/sax.js:861:5)
I20150226-01:51:32.087(-6)? at Object.write (/Users/eduardomercado/.meteor/packages/peerlibrary_xml2js/.0.4.4_4.1dnnp1i++os+web.browser+web.cordova/npm/node_modules/xml2js/node_modules/sax/lib/sax.js:1294:29)
I20150226-01:51:32.087(-6)? at Parser.exports.Parser.Parser.parseString (/Users/eduardomercado/.meteor/packages/peerlibrary_xml2js/.0.4.4_4.1dnnp1i++os+web.browser+web.cordova/npm/node_modules/xml2js/lib/xml2js.js:403:31)

Add example to README

Hi peerlibrary,

I have been trying to find answers through StackOverflow and a myriad of other places on how to use HTTP.call() to collect some XML and then xml2js to parse it. Even the simplest of examples in the Readme file would do folks like me a lot of good. I'm of course willing to lend a hand as soon as I understand how to wire things up.

Thanks in advance,
Wray

Migrate package to the new server

Hello,
with meteor 0.9.0 coming, there is a new package server. AFAIK, your xml2js package has not been migrated on this server.
Could you please do it when you have time ?
Thank you in advance.

xml2js fails on startup with latest meteorite

I just installed meteorite, and the following error occurs when I install xml2js in a brand new test project.

(Previous commands: mrt create test-app; cd test-app; mrt add xml2js)

% mrt
Stand back while Meteorite does its thing

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

[[[[[ ~/dev/other/test-app ]]]]]

=> Meteor server running on: http://localhost:3000/

/Users/asinesio/dev/other/test-app/.meteor/local/build/server/server.js:325
  }).run();
     ^
TypeError: undefined is not a function
    at app/packages/xml2js/bootstrap.coffee.js:11:12
    at app/packages/xml2js/bootstrap.coffee.js:64:3
    at /Users/asinesio/dev/other/test-app/.meteor/local/build/server/server.js:286:12
    at Array.forEach (native)
    at Function._.each._.forEach (/Users/asinesio/.meteorite/meteors/meteor/meteor/1e9b9480d171114e0bb4c09f31ccc9afac74a898/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
    at run (/Users/asinesio/dev/other/test-app/.meteor/local/build/server/server.js:227:7)
=> Exited with code: 1
=> Meteor server restarted

xml2js new version

Hi Mitar,
xml2js 0.4.1 is up on npm. Is it possible to update dependency ?
Thanks,
Pascal

xml2js update

Hello, can you please update your atmospherejs package with last version of xml2js to have valueProcessors?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.