Do not use ':' as a namespace separator with expat

Instead use \1, and build our own nodes by explicitely separating the
namespace and the node name.
This commit is contained in:
louiz’
2022-03-10 23:23:47 +01:00
parent 18b6006e30
commit 0061298dd0
9 changed files with 48 additions and 28 deletions
+2 -2
View File
@@ -18,9 +18,9 @@
* stanza is reasonnably short.
*
* The element names generated by expat contain the namespace of the
* element, a colon (':') and then the actual name of the element. To get
* element, a \1 separator and then the actual name of the element. To get
* an element "x" with a namespace of "http://jabber.org/protocol/muc", you
* just look for an XmlNode named "http://jabber.org/protocol/muc:x"
* just look for an XmlNode named "http://jabber.org/protocol/muc\1x"
*
* TODO: enforce the size-limit for the stanza (limit the number of childs
* it can contain). For example forbid the parser going further than level