-
Notifications
You must be signed in to change notification settings - Fork 85
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
Provide an API compatible abstraction to use node-xml as node-expat #44
Comments
I don't know if it helps but ltx support different backends node-xml is one of them |
Didn't know this - thanks for the info! We use the SAX interface of node-expat, so this is of limited use for now :-/ |
What about switching to ltx? |
ltx doesn't have a sax parser - and it's used heavily to do the xml parsing since it's much more efficient to do that than dom parsing. Besides, it isn't easy to locate xml message boundaries when data is received over a socket from the xmpp server. |
https://github.com/astro/ltx/tree/master/lib Please see sax_node-xml.js |
@sonnyp That's an interesting starting point! |
https://github.com/robrighter/node-xml
This allows anyone to use it (independent of platform) since node-xml is pure javascript (no C-bindings to libexpat1).
However, this comes at a cost:
This mode would be discouraged, but hopefully supported some time in the future.
The text was updated successfully, but these errors were encountered: