You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0239.xml 42KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Binary XMPP</title>
  10. <abstract>This specification defines Binary XMPP, an obviously superior representation of the Extensible Messaging and Presence Protocol (XMPP).</abstract>
  11. &LEGALNOTICE;
  12. <number>0239</number>
  13. <status>Active</status>
  14. <type>Humorous</type>
  15. <sig>Standards</sig>
  16. <approver>Council</approver>
  17. <dependencies>
  18. <spec>XMPP Core</spec>
  19. </dependencies>
  20. <supersedes/>
  21. <supersededby/>
  22. <shortname>N/A</shortname>
  23. <author>
  24. <firstname>Pedro</firstname>
  25. <surname>Melo</surname>
  26. <email>011011010110010101101100011011110100000001110011011010010110110101110000011011000110100101100011011010010110010001100001011001000110010100101110011011110111001001100111</email>
  27. <jid>011011010110010101101100011011110100000001110011011010010110110101110000011011000110100101100011011010010110010001100001011001000110010100101110011011110111001001100111</jid>
  28. </author>
  29. <author>
  30. <firstname>Peter</firstname>
  31. <surname>Saint-Andre</surname>
  32. <email>011100110111010001110000011001010111010001100101011100100100000001101010011000010110001001100010011001010111001000101110011011110111001001100111</email>
  33. <jid>011100110111010001110000011001010111010001100101011100100100000001101010011000010110001001100010011001010111001000101110011011110111001001100111</jid>
  34. </author>
  35. <author>
  36. <firstname>Fabio</firstname>
  37. <surname>Forno</surname>
  38. <email>011001100110000101100010011010010110111100101110011001100110111101110010011011100110111101000000011001110110110101100001011010010110110000101110011000110110111101101101</email>
  39. <jid>011001100110011001000000011010100110000101100010011000100110010101110010001011100110001001101100011101010110010101101110011001000110111100101110011000110110111101101101</jid>
  40. </author>
  41. <revision>
  42. <version>1.0</version>
  43. <date>2008-04-01</date>
  44. <initials>pm/psa/ff</initials>
  45. <remark><p>April Fools!</p></remark>
  46. </revision>
  47. </header>
  48. <section1 topic='Introduction' anchor='intro'>
  49. <p>Everyone knows that binary data encodings are much more efficient than the Extensible Markup Language (XML). Given that XMPP is an application profile of XML, it is a wonder that XMPP works at all! Clearly, XMPP would benefit from a binary representation. Therefore, this specification defines Binary XMPP.</p>
  50. </section1>
  51. <section1 topic='Protocol' anchor='protocol'>
  52. <p>&xmppcore; defines the traditional representation of XMPP. For instance, an empty presence stanza (such as might be provided on login) is as follows:</p>
  53. <example caption='Traditional XMPP stanza'><![CDATA[
  54. <presence/>
  55. ]]></example>
  56. <p>That string can be represented in binary as follows:</p>
  57. <example caption='Binary representation'><![CDATA[
  58. 0011110001110000011100100110010101110011011001010110111001100011011001010010111100111110
  59. ]]></example>
  60. <p>The bit sequence is therefore represented in Binary XMPP as follows (line breaks are provided only for the purpose of readability):</p>
  61. <example caption='Binary XMPP representation'><![CDATA[
  62. <zero/><zero/><one/><one/><one/><one/><zero/><zero/>
  63. <zero/><one/><one/><one/><zero/><zero/><zero/><zero/>
  64. <zero/><one/><one/><one/><zero/><zero/><one/><zero/>
  65. <zero/><one/><one/><zero/><zero/><one/><zero/><one/>
  66. <zero/><one/><one/><one/><zero/><zero/><one/><one/>
  67. <zero/><one/><one/><zero/><zero/><one/><zero/><one/>
  68. <zero/><one/><one/><zero/><one/><one/><one/><zero/>
  69. <zero/><one/><one/><zero/><zero/><zero/><one/><one/>
  70. <zero/><one/><one/><zero/><zero/><one/><zero/><one/>
  71. <zero/><zero/><one/><zero/><one/><one/><one/><one/>
  72. <zero/><zero/><one/><one/><one/><one/><one/><zero/>
  73. ]]></example>
  74. <p>This is an obvious improvement over the traditional representation.</p>
  75. <p>It might be objected that the Binary XMPP representation requires a large number of XML elements. However, because all data is represented using only &lt;zero/&gt; and &lt;one/&gt;, the protocol can be significantly compressed using the standard ZLIB compression algorithm as defined in &rfc1950;, which SHOULD be enabled by default on the bxmpp port. Evidence from preliminary testing indicates that compression of Binary XMPP results in a representation less than 2% of the original size!</p>
  76. <p>As a further simplification, Binary XMPP gets rid of the complicated stream negotiation process defined in RFC 3920. Instead, if a server supports Binary XMPP it advertises a special DNS SRV record _bxmpp._tcp in accordance with &rfc2782;. Furthermore, only one record is needed, thus saving precious port space. The RECOMMENDED port for Binary XMPP communication is 10110, but any port MAY be used.</p>
  77. <p>To start a Binary XMPP stream, the sender simply connects via TCP at the advertised port and starts sending &lt;zero/&gt; and &lt;one/&gt; elements. The lack of a stream header simplifies XML parsing, introducing further performance improvements.</p>
  78. </section1>
  79. <section1 topic='Examples' anchor='examples'>
  80. <p>The following examples showcase the tremendous efficiency of Binary XMPP using a complete session between a client and a server.</p>
  81. <example caption='Client sends initial stream header (XMPP)'><![CDATA[
  82. <stream:stream
  83. from='juliet@example.com'
  84. to='example.com'
  85. version='1.0'
  86. xml:lang='en'
  87. xmlns='jabber:client'
  88. xmlns:stream='http://etherx.jabber.org/streams'>
  89. ]]></example>
  90. <example caption='Binary XMPP representation'><![CDATA[
  91. <zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/>
  92. ]]></example>
  93. <example caption='Server sends response stream header (XMPP)'><![CDATA[
  94. <stream:stream
  95. from='example.com'
  96. id='t7AMCin9zjMNwQKDnplntZPIDEI='
  97. to='juliet@example.com'
  98. version='1.0'
  99. xml:lang='en'
  100. xmlns='jabber:client'
  101. xmlns:stream='http://etherx.jabber.org/streams'>
  102. ]]></example>
  103. <example caption='Binary XMPP representation'><![CDATA[
  104. <zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/>
  105. ]]></example>
  106. <example caption='Server sends stream features (XMPP)'><![CDATA[
  107. <stream:features>
  108. <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'>
  109. <required/>
  110. </starttls>
  111. </stream:features>
  112. ]]></example>
  113. <example caption='Binary XMPP representation'><![CDATA[
  114. <zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/>
  115. ]]></example>
  116. <example caption='Client sends STARTTLS command to server'><![CDATA[
  117. <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
  118. ]]></example>
  119. <example caption='Binary XMPP representation'><![CDATA[
  120. <zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/>
  121. ]]></example>
  122. <example caption='Server informs client that it is allowed to proceed'><![CDATA[
  123. <proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
  124. ]]></example>
  125. <example caption='Binary XMPP representation'><![CDATA[
  126. <zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><zero/><zero/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><one/><one/><one/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><zero/><zero/><one/><zero/><one/><one/><zero/><zero/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><zero/><one/><one/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><one/><one/><one/><one/><zero/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><zero/><zero/><zero/><zero/><one/><zero/><one/><one/><zero/><one/><zero/><one/><one/><one/><zero/><one/><zero/><zero/><zero/><one/><one/><zero/><one/><one/><zero/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><one/><zero/><zero/><one/><zero/><zero/><one/><one/><one/><zero/><zero/><one/><zero/><one/><one/><one/><one/><zero/><zero/><one/><one/><one/><one/><one/><zero/>
  127. ]]></example>
  128. <p>And so on. Much more efficient, eh?</p>
  129. </section1>
  130. <section1 topic='Internationalization Considerations' anchor='i18n'>
  131. <p>The &lt;zero/&gt; and &lt;one/&gt; elements use English-language words as the element names. Clearly it would have been preferable to define an i18n-friendly binding, such that German-language applications could encode Binary XMPP using the &lt;null/&gt; and &lt;eins/&gt; elements, Greek-language applications could use the &lt;&#956;&#951;&#948;&#8051;&#957;/&gt; and &lt;&#7953;&#957;&#945;/&gt; elements, etc. Flexibility regarding internationalization of the element names may be added in Binary XMPP 2.0.</p>
  132. </section1>
  133. <section1 topic='Security Considerations' anchor='security'>
  134. <p>Because it is simply an alternative representation of XMPP, Binary XMPP inherits all of the security characteristics of XMPP (the good, the bad, and the ugly).</p>
  135. <p>Use of port 10110 is obviously secure, since 10110 in base 2 is 22 in base 10, the same default port as Secure Shell (see &rfc4251;).</p>
  136. </section1>
  137. <section1 topic='IANA Considerations' anchor='iana'>
  138. <p>The &REGISTRAR; shall work with &IANA; to register "bxmpp" as a keyword for port 10111.</p>
  139. </section1>
  140. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  141. <p>The XMPP Registrar shall include 'urn:xmpp:bxmpp' in its registry of protocol namespaces (see &NAMESPACES;).</p>
  142. </section1>
  143. <section1 topic='XML Schema' anchor='schema'>
  144. <code><![CDATA[
  145. <?xml version='1.0' encoding='UTF-8'?>
  146. <xs:schema
  147. xmlns:xs='http://www.w3.org/2001/XMLSchema'
  148. targetNamespace='urn:xmpp:bxmpp'
  149. xmlns='urn:xmpp:bxmpp'
  150. elementFormDefault='qualified'>
  151. <xs:element name='one' type='empty'/>
  152. <xs:element name='zero' type='empty'/>
  153. <xs:simpleType name='empty'>
  154. <xs:restriction base='xs:string'>
  155. <xs:enumeration value=''/>
  156. </xs:restriction>
  157. </xs:simpleType>
  158. </xs:schema>
  159. ]]></code>
  160. </section1>
  161. <section1 topic='Acknowledgements' anchor='ack'>
  162. <p>Thanks to Kevin Smith for his feedback.</p>
  163. </section1>
  164. </xep>