Comments (2)
The main rationale behind switching to exml
is the proper support for XML Namespaces.
The current state of XML handling in ejabberd is that it doesn't store the NS (namespace) of every element, but in general assumes that the NS is jabber:client
and stores it as pseudo-attribute xmlns
only when it knows it's different, i.e. declared by that element itself as an attribute.
What it means in practice is that we deal just right with the following example of XMPP stream:
<stream:stream xmlns:stream="..." xmlns="...">
<iq>
<query xmlns="some_query_namespace">
</iq>
...
but wouldn't be able to cope with equally legal in terms of the standard example:
<stream:stream xmlns:stream="..." xmlns="..." xmlns:q="some_query_namespace">
<iq>
<q:query>
</iq>
...
Firstly, some XMPP client might prefer the latter formulation and current ejabberd just won't understand it.
Secondly, it might prove to be a source of network usage optimization to declare often used namespaces only once and then use just the short prefixes for specific elements.
from mongooseim.
Further work is done in #183
from mongooseim.
Related Issues (20)
- 4.5.0-alpha1 smack: Message Archive Management is not supported by HOT 3
- `mod_blocking` doesn't stop messages from being processed by `modules.mod_mam.pm` or `mod_inbox` HOT 2
- How to get actual message xml packet with external code or by direct database query in MAM HOT 9
- mongooseimctl ipv6 support HOT 9
- Duplicated messages in `mam_message` HOT 4
- -proto_dist inet6_tcp support? HOT 2
- mod_pubsub using subscribee returns bad-request, invalid-jid HOT 2
- Message sending failure with OMEMO HOT 2
- Change config in muclight replacing old config
- GraphQL session ListSessions returns empty lists
- `max_stanza_size` doesn't work with websockets HOT 2
- How to use wss ? HOT 4
- GraphQL SSE crashes on large message stanza payload
- How does mongooseim handle unacknowledged stanza's ? HOT 2
- Mongooseim not sending push notifications to disconnected clients HOT 4
- mod_event_pusher HTTP only sends chat type messages HOT 2
- How to implement stream resumption in XEP-0198 stream management from client side ? HOT 7
- gen_server 'wpool_pool-mongoose_wpool$rdbms$global$default-1' terminated with reason: {{{integer_overflow,int8,957926528636579656073}, HOT 4
- Messages send through push notifications again resended to the client upon reconnection HOT 2
- how to send push notification data to my custom http endpoint instead of mongoosepush?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongooseim.