Coder Social home page Coder Social logo

js2xml's People

Contributors

chipytux avatar philjackson avatar pomeo avatar valorkin avatar wires avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

js2xml's Issues

How to add attributes?

how to make xml with attributes like this

<request> 
  <auth login="" password="" agent="" /> 
  <body type="" id="" service="" account="" amount="" date="" /> 
  <extra ev_name_1="" ev_name_2="" ev_name_N="" /> 
</request> 

Problem to compile with OSx

I tried to install js2xml but my mac said NO WAY...

Undefined symbols for architecture x86_64:
....
ld: symbol(s) not found for architecture x86_64

I googled and find the problem at [email protected] and they solved the Problem with the Version 0.14.2.
So far, ok. But the package.json of js2xml said "I need Version 0.14.0".

So I can't install this Version.....

Update the libxmljs dependency to version 0.6.1

The current libxmljs library throws this error when starting. Updating the dependency to the latest version fixes this error.

Error: Cannot find module '../build/default/libxmljs'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (../node_modules/js2xml/node_modules/libxmljs/lib/bindings.js:6:22)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)

Can't install with XCode 6.3

I can't install js2xml with XCode 6.3 version for OS X due to libxmljs dependency.
Could you update to last version: 0.14.0?

Update npm published version

js2xml 1.0.4 on npm has libxmljs at 0.14.3
philjackson/js2xml#master has libxmljs at >0.18.0

Mind publishing master to npm to update?

Thanks!

Update libxmljs to 0.6.1

My node.js version is 0.8.9, and I met the issue:
Cannot find module '../build/default/libxmljs'..
..
I founc the libxmljs can not found, could you please help to update the libxmljs version ?

Unable to install

After updating npm i've got following error when i try to install:
node-pre-gyp http GET https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v59-darwin-x64.tar.gz node-pre-gyp http 404 https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v59-darwin-x64.tar.gz node-pre-gyp ERR! Tried to download(404): https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v59-darwin-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://github.com/libxmljs/libxmljs/releases/download/v0.18.4/node-v59-darwin-x64.tar.gz

i've created fork and updated package.json dependencylibxmljs to current version (0.18.7). That helped in my case

Unable to install js2xml on Windows 7 64bit

The problem seems to be with the libxmljs dependency, the version specified in the packaged.json file (0.8.1) does not build on windows, however the latest version (0.13.0) does build on windows. Upgrading the dependency does not seem to break anything as the tests compile and run fine.

Please Update "libxmljs": "0.18.4" dependence to at least "0.19.1"

This will be update the 'hoek' dependence to a new version.
hoek node module before 4.2.0 and 5.0.x before 5.0.3 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via 'merge' and 'applyToDefaults' functions, which allows a malicious user to modify the prototype of "Object" via proto, causing the addition or modification of an existing property that will exist on all objects.

https://nvd.nist.gov/vuln/detail/CVE-2018-3728

Add license

Hi Phil,

Could you include a license in your module ?

Thanks,
Andre

Incorrect handling of boolean values

Example..

var js = {result: true};
var xml = new Js2Xml("update_lead_outcome", json).toString();
console.log(xml);

Which prints..

<update_lead_outcome>
  <result/>
</update_lead_outcome>

Shouldn't this be..

<update_lead_outcome>
  <result>true</result>
</update_lead_outcome>

Workaround - use "true" as bool value

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.