kyleslattery / node-xml2object Goto Github PK
View Code? Open in Web Editor NEWA simple node.js module to transform XML into an object
A simple node.js module to transform XML into an object
Hi,
I tried using the sample code and XML that you provided, and get the above-refernced TypeError.
Here's the traceback:
/home/NTE/dmuth/local/lib/node/node-xml2object/lib/xml2object.js:80
callback(null, obj);
^
TypeError: undefined is not a function
at CALL_NON_FUNCTION (native)
at [object Object].onEndElementNS (/home/NTE/dmuth/local/lib/node/node-xml2object/lib/xml2object.js:80:5)
at [object Object]._fireEvent (/home/NTE/dmuth/local/lib/node/node-xml2object/vendor/node-xml/lib/node-xml.js:952:21)
at [object Object]._parseLoop (/home/NTE/dmuth/local/lib/node/node-xml2object/vendor/node-xml/lib/node-xml.js:985:18)
at Timer.callback (/home/NTE/dmuth/local/lib/node/node-xml2object/vendor/node-xml/lib/node-xml.js:822:18)
at node.js:761:9
I played around with the XML I was feeding to parseString() and found that the issue persists with any XML at all, such as: "<root></root>"
Since this appears to be some issue with how node-xml is interacted with, I am using commit 4aee901b997ef784716c8de799d27292eb18e099 of the node-xml project.
Let me know if there's any other info I can provide.
Thanks,
-- Doug
Hi, this seems to be the same issue that showed up in Apricot and was fixed as #21. So I'm using 'npm install' on Ubuntu 12.04 and I get this error:
npm WARN engine [email protected]: wanted: {"node":"~0.6.10"} (current: {"node":"v0.8.18","npm":"1.2.2"})
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: [email protected]
npm ERR! notsup Valid OS: linux,macos,darwin,win
npm ERR! notsup Valid Arch: x86,ppc,x86_64,x64
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: ia32
npm ERR! System Linux 3.2.0-36-generic-pae
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /usr/local/src/netentionjs2
npm ERR! node -v v0.8.18
npm ERR! npm -v 1.2.2
npm ERR! code EBADPLATFORM
I tried running the tests, and all fail due to the title message.
Is there another library to accomplish xml2obj translation? I mean, Promise was removed in 0.1.30 (we're at 0.1.96)
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.