-
debacle
Berlin sprint will be 19. to 21. of June. Please register yourself here: https://wiki.xmpp.org/web/Sprints/2026-06_Berlin#Attendees
-
alexkurisu
Weird question: am i safe to assume that stuff like ``` <foo xmlns="ns1" xmlns:p="ns2" xmlns:q="ns3"> <p:bar q:attr="value"> ... </p:bar> </foo> ``` will never arrive? In other words, am i safe to assume that namespaces will not require inheritance?
-
alexkurisu
Trying to write an XMPP-specific XML parser and is stuck with this question
-
lovetox
im pretty sure childs inherit the namespace of the parent
-
alexkurisu
Hmm, looks like i'll have to implement full-on namespace resolution…
-
lovetox
i dont think xmpp does anything special here, what the XML spec defines is what is allowed.
-
alexkurisu
Otherwise i could just store only those namespaces that are declared textually inside the element
-
lovetox
but there are probably people that know this better
-
jjj333_p (any pronouns)
afaik the only specialness about xmpp xml is just that you have to progressively parse instead of trying to parse the entire connection as one long stanza lol
-
alexkurisu
All the hard parts of XML are also invalid in XMPP subset of XML, so it's parser is mostly implementable as a single visibly pushdown automata with some extra logic, unlike a full-blown XML parser
-
singpolyma
Just use a real XML parser :P
-
singpolyma
But also yes you need full namespaces for sure
-
alexkurisu
> Just use a real XML parser :P It's not fun :) ↺
-
Évelyne
are you also aiming for security, along with fun, alexkurisu?
-
lovetox
the argument against using a existing xml parsers, as far as i know is just that often disabling all the stuff you dont need for xmpp and are potentially dangerous, are often hard
-
alexkurisu
> the argument against using a existing xml parsers, as far as i know is just that often disabling all the stuff you dont need for xmpp and are potentially dangerous, are often hard Also, separate stanza splitters are pain ↺
-
alexkurisu
> are you also aiming for security, along with fun, alexkurisu? Kind of ↺