philjackson / js2xml Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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>
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.....
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)
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
?
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!
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 ?
It is possible to replace the package? Because the installation on windows implies a lot of problems with installing additional software for the package ‘node-gyp’.
http://prntscr.com/bmkyns
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
Hi,
I am trying to install JS2XML on Windows 7 32bit OS. But, getting error always.
npm-debug log attached for your reference.
Thanks,
Sanjeev
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.
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.
Hi Phil,
Could you include a license in your module ?
Thanks,
Andre
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.