jdev - 2026-02-08


  1. debacle

    Berlin sprint will be 19. to 21. of June. Please register yourself here: https://wiki.xmpp.org/web/Sprints/2026-06_Berlin#Attendees

  2. 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?

  3. alexkurisu

    Trying to write an XMPP-specific XML parser and is stuck with this question

  4. lovetox

    im pretty sure childs inherit the namespace of the parent

  5. alexkurisu

    Hmm, looks like i'll have to implement full-on namespace resolution…

  6. lovetox

    i dont think xmpp does anything special here, what the XML spec defines is what is allowed.

  7. alexkurisu

    Otherwise i could just store only those namespaces that are declared textually inside the element

  8. lovetox

    but there are probably people that know this better

  9. 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

  10. 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

  11. singpolyma

    Just use a real XML parser :P

  12. singpolyma

    But also yes you need full namespaces for sure

  13. alexkurisu

    > Just use a real XML parser :P It's not fun :)

  14. Évelyne

    are you also aiming for security, along with fun, alexkurisu?

  15. 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

  16. 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

  17. alexkurisu

    > are you also aiming for security, along with fun, alexkurisu? Kind of