-
Notifications
You must be signed in to change notification settings - Fork 28
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
Backwards compatibility with popular libraries #16
Comments
interesting interesting, indeed, interesting times two, thanks for considering to add txml. and I understand the conditions have to be fair and the task the same. And yes, I love the idea of txml currently has two transformation functions that take the DOM and turn it into a more convenient data structure. Not sure when I get to implement such feature. Thanks for getting in contact @Redsandro @strarsis |
Thanks for the response @TobiasNickel. Some of the binary implementations ( Your method could be a lot more efficient; the overhead might not necessarily be due to configurable object creation. If you get around to such a thing, please tag me here or on Redsandro/node-xml2js-olympics#1. Keep in mind that a transformation in userland would be less efficient because you would traverse the data twice. |
A drop-in replacement option, especially native javascript, would be appreciated because some older modules are getting harder to compile on newer node versions. 👍 |
I had the idea, it might even be possible to help xml2js to migrate from sax to txml. Similar to the PR I made to When doing this work, I think |
The inner workings of these parsers are too complex for me to weigh on. I'm afraid I can't comment on the viability of such migration, keeping in mind that the output needs to be identical for the result to be a drop-in replacement for all the dependent projects out there. But I certainly encourage you to try if you believe it is viable! If you or someone else makes a cloneable PR for xml2js, tag me again so I can benchmark and compare against the older version.
|
The value of this library increases if it can be configured to build the resulting object similar to popular projects like
rapidx2j
,nkit
,x2je
,xml2json
andxml2js
. It would instantly become a drop-in replacement for each of those libraries used in other node projects.In order to do that, you'd need to:
Would you be interested in adding the option(s) to do so?
Example: In stead of this:
We need to end up with this:
In response to Redsandro/node-xml2js-olympics#1
The text was updated successfully, but these errors were encountered: