-
Notifications
You must be signed in to change notification settings - Fork 11
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: Cannot read property '$ns' of undefined #8
Comments
Sorry, I will not be able to help you much here without more data. Can you do a pull request with a failing test case? |
Hi! I'm facing the same issue. Here's an XML example:
|
Same issue here:
xmllint has no problem, and validates the document successfully. Note that amzn-envelope.xsd includes all sorts of other xsds as well. (updated to include xml preamble in example.) |
Yes, as I mentioned in other issues, I made this package for a particular XSD I had and developed features only for what was needed. I know some things are not implemented. But at the moment I do not have time to further work on this, especially because it works for me. But I would be glad to accept pull requests adding more features. |
One thing, this package uses a fork of xml2js because two pull requests have not been merged upstream. Are you using that fork or not? |
Can people create pull requests with tests which are failing? |
OK, and people, those are different issues here. Do not all write in the same ticket. Are you all getting @TheWinDev: You problem is that for @mlooney: Your example is not a valid XML? |
no, that particular snippet is not, but the document is rather large, so i didn't paste it in its entirety. I'll come up with a smaller test case to reproduce. |
I see, |
When I try to parse a xml file I get the error "TypeError: Cannot read property '$ns' of undefined", and it seems to be coming from xml2js. I just copied and pasted the example code:
There is no problem parsing the same xml with xml2js.
I use xml2js 0.4.9 and xml4js 0.1.2.
The text was updated successfully, but these errors were encountered: