Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: undefined is not a function #2

Open
dmuth opened this issue Aug 27, 2010 · 0 comments
Open

TypeError: undefined is not a function #2

dmuth opened this issue Aug 27, 2010 · 0 comments

Comments

@dmuth
Copy link

dmuth commented Aug 27, 2010

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant