Payload Carrier

Earlier in this chapter we saw how a basic message was embellished with a structured and parseable 'attachment' in the form of a jabber:x:oob qualified <x/> tag, and its child tags:

<x xmlns='jabber:x:oob'>
  <url>http://www.megacorp.co.uk/earnings3q.html</url>
  <desc>Third Quarter Earnings for Megacorp</desc>
</x>

How does this actually work in practice? Well, partly by requirement, partly by convention.

Chapter 5 lists the standard namespaces used in Jabber to qualify the <x/> and <query/> attachments. But we're not restricted to just those namespaces - we're free to build our own attachments qualified by our own namespaces, if we think that what we want to achieve isn't covered by anything 'out of the box'. In this situation, there are two things to note: