O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Extending XMPP

The first word in the acronym XMPP, the Extensible Messaging and Presence Protocol, highlights the extensible nature of XMPP. It is extensible in a well-defined, well-behaved and deterministic sense.

We have already mentioned that XMPP is based on XML. During the negotiation, the XML root element (level 1) is sent by both parties. It is this element that indicates to both parties that XMPP will be used. During the course of communication, XML fragments are sent. The root element of each such fragment (level 2 XML element) is called a stanza. The contents of the stanza, however, are defined by fully qualified XML elements (level 3 XML elements) in an extensible manner. Being fully qualified in XML means the elements have both ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required