jdev - 2020-02-17

  1. debacle has left

  2. debacle has joined

  3. debacle has left

  4. debacle has joined

  5. asterix has left

  6. asterix has joined

  7. kikuchiyo has left

  8. kikuchiyo has joined

  9. debacle has left

  10. debacle has joined

  11. debacle has left

  12. debacle has joined

  13. debacle has left

  14. debacle has joined

  15. debacle has left

  16. debacle has joined

  17. debacle has left

  18. debacle has joined

  19. asterix has left

  20. kikuchiyo has left

  21. debacle has left

  22. kikuchiyo has joined

  23. kikuchiyo has left

  24. wurstsalat has left

  25. kikuchiyo has joined

  26. kikuchiyo has left

  27. gav has joined

  28. gav has left

  29. gav has joined

  30. kikuchiyo has joined

  31. larma has left

  32. larma has joined

  33. kikuchiyo has left

  34. kikuchiyo has joined

  35. tsk has left

  36. tsk has joined

  37. kikuchiyo has left

  38. kikuchiyo has joined

  39. paul has joined

  40. kikuchiyo has left

  41. wurstsalat has joined

  42. moparisthebest has left

  43. kikuchiyo has joined

  44. sonny has left

  45. kikuchiyo has left

  46. asterix has joined

  47. sonny has joined

  48. kikuchiyo has joined

  49. kikuchiyo has left

  50. kikuchiyo has joined

  51. kikuchiyo has left

  52. kikuchiyo has joined

  53. pulkomandy has left

  54. pulkomandy has joined

  55. Marc has left

  56. Marc has joined

  57. Zash has left

  58. Zash has joined

  59. kikuchiyo has left

  60. dc has joined

  61. dc has left

  62. kikuchiyo has joined

  63. Zash has left

  64. Zash has joined

  65. debacle has joined

  66. pulkomandy has left

  67. pulkomandy has joined

  68. Bartek has joined

  69. Bartek has left

  70. goffi has joined

  71. debacle has left

  72. pulkomandy has left

  73. pulkomandy has joined

  74. debacle has joined

  75. Sam Whited

    Thinking about matching handlers to XML elements while parsing as few tokens as possible more I think the way to do it is to match message and presence by type, IQs by type and the XMLName of the payload, and other top level elements by the XML name of the element (with options on all of those for wildcards so you can eg. match all IQs with a payload in a given namespace regardless of the local name).

  76. Martin has left

  77. Sam Whited

    Then I can have specific handlers for each stanza type that get an unmarshaled version of the stanza start element with convenient helper methods (eg. an "IQ" struct with a reply method) and the generic handlers just get the XML token that caused the match and the remainder of the token stream.

  78. Sam Whited

    I feel like I've come to this conclusion before but forgot, I guess we'll see how it does in practice. </rubber-ducking>

  79. Martin has joined

  80. flow

    Sam Whited, FWIW I think what you name XMLName is often called QName (for qualified name)

  81. Zash

    Matching on bare/full/host JID seems to have worked well in Prosody

  82. Kev

    Kinda. Qualified names are within a particular document and use declarations.

  83. Kev

    At least IIRC.

  84. Kev

    So you can't talk about qnames generically outside the context of a particular document.

  85. flow

    Kev, for me QName is simply "element name" + "namespace of the element"

  86. Sam Whited

    Full name?

  87. pulkomandy has left

  88. Sam Whited

    yah, qname is a prefixed name like stream:stream according to wikipedia

  89. sonny has left

  90. sonny has joined

  91. flow

    I am not sure if the name being prefixed is the property that makes a name qualified. IIRC it is that you have a namespace together with the localpart (unqualified/local name)

  92. flow

    If you want or need to prefix the name is more a matter of the XML serialization routine

  93. tsk has left

  94. tsk has joined

  95. larma has left

  96. larma has joined

  97. aj has joined

  98. ralphm

    So syntactically QName is one of PrefixedName or UnprefixedName. Abstractly, a QName is the namespace + prefix + local name.

  99. aj has left

  100. pulkomandy has joined

  101. pulkomandy has left

  102. pulkomandy has joined

  103. moparisthebest has joined

  104. pulkomandy has left

  105. pulkomandy has joined

  106. pulkomandy has left

  107. pulkomandy has joined

  108. rion has left

  109. rion has joined

  110. pulkomandy has left

  111. pulkomandy has joined

  112. pulkomandy has left

  113. pulkomandy has joined

  114. kikuchiyo has left

  115. asterix has left

  116. asterix has joined

  117. pulkomandy has left

  118. pulkomandy has joined

  119. asterix has left

  120. kikuchiyo has joined

  121. asterix has joined

  122. kikuchiyo has left

  123. Wojtek has joined

  124. kikuchiyo has joined

  125. Sam Whited has left

  126. Sam Whited has joined

  127. asterix has left

  128. Martin has left

  129. asterix has joined

  130. Martin has joined

  131. asterix has left

  132. asterix has joined

  133. pulkomandy has left

  134. pulkomandy has joined

  135. asterix has left

  136. asterix has joined

  137. asterix has left

  138. asterix has joined

  139. asterix has left

  140. asterix has joined

  141. asterix has left

  142. asterix has joined

  143. larma has left

  144. pulkomandy has left

  145. kikuchiyo has left

  146. kikuchiyo has joined

  147. lovetox has joined

  148. kikuchiyo has left

  149. larma has joined

  150. pulkomandy has joined

  151. larma has left

  152. asterix has left

  153. asterix has joined

  154. pulkomandy has left

  155. Alex has left

  156. larma has joined

  157. Wojtek has left

  158. asterix has left

  159. asterix has joined

  160. pulkomandy has joined

  161. asterix has left

  162. asterix has joined

  163. kikuchiyo has joined

  164. Wojtek has joined

  165. Martin has left

  166. pulkomandy has left

  167. pulkomandy has joined

  168. Martin has joined

  169. larma has left

  170. strar has left

  171. asterix has left

  172. asterix has joined

  173. debacle has left

  174. pulkomandy has left

  175. Martin has left

  176. Martin has joined

  177. Alex has joined

  178. Marc has left

  179. Marc has joined

  180. Alex has left

  181. larma has joined

  182. asterix has left

  183. asterix has joined

  184. kikuchiyo has left

  185. kikuchiyo has joined

  186. debacle has joined

  187. kikuchiyo has left

  188. kikuchiyo has joined

  189. debacle has left

  190. debacle has joined

  191. kikuchiyo has left

  192. kikuchiyo has joined

  193. pulkomandy has joined

  194. Meta Bergman has left

  195. Meta Bergman has joined

  196. lovetox has left

  197. lovetox has joined

  198. pulkomandy has left

  199. pulkomandy has joined

  200. kikuchiyo has left

  201. kikuchiyo has joined

  202. wurstsalat has left

  203. wurstsalat has joined

  204. larma has left

  205. larma has joined

  206. larma has left

  207. aj has joined

  208. strar has joined

  209. goffi has left

  210. aj has left

  211. lovetox has left

  212. Alex has joined

  213. Alex has left

  214. Alex has joined

  215. strar has left

  216. strar has joined

  217. strar has left

  218. strar has joined

  219. paul has left

  220. strar has left

  221. strar has joined

  222. strar has left

  223. strar has joined

  224. strar has left

  225. strar has joined

  226. strar has left

  227. larma has joined

  228. strar has joined

  229. wurstsalat has left

  230. asterix has left

  231. larma has left

  232. Wojtek has left

  233. pulkomandy has left

  234. pulkomandy has joined

  235. moparisthebest has left

  236. larma has joined

  237. larma has left

  238. ivy42 has joined

  239. ivy42

    ivy42 ivy42 d

  240. Alex has left

  241. ivy has joined