3 ms·
Any XML parser that I know can parse XML in a stream, that's all you need to handle an incoming XMPP stream. Just an example, here is the XML parser that I wro
by edhelas 8y ago
Any XML parser that I know can parse XML in a stream, that's all you need to handle an incoming XMPP stream.
Just an example, here is the XML parser that I wrote in PHP https://github.com/movim/movim/blob/master/lib/moxl/src/Moxl/Parser.php https://github.com/movim/movim/blob/master/lib/moxl/src/Moxl... (127 lines), it basically handle the stream as an input and fire SimpleXML (can also be DOM XML) on the other hand.
This can handle thousands of XMPP messages (called stanza) per second :)
- forty 8y agoCan it handle plaintext XML suddenly becoming TLS encrypted? Because that's also what happens on any XMPP connection. If it can, then great but I guess it's more an exception than the rule