350-801 · Question #173
Which attribute contains an XMPP stanza?
The correct answer is C. type. In XMPP (Extensible Messaging and Presence Protocol), iq, message, and presence are the three core XML stanza elements. The type field, however, is a common attribute within these stanzas, used to specify their specific purpose or subtype.
Question
Which attribute contains an XMPP stanza?
Options
- Aiq
- Bmessage
- Ctype
- Dpresence
How the community answered
(52 responses)- A6% (3)
- B4% (2)
- C88% (46)
- D2% (1)
Why each option
In XMPP (Extensible Messaging and Presence Protocol), iq, message, and presence are the three core XML stanza elements. The type field, however, is a common attribute within these stanzas, used to specify their specific purpose or subtype.
iq is one of the three core XMPP stanza elements, not an attribute that contains a stanza.
message is one of the three core XMPP stanza elements, used for instant messages, not an attribute.
In the context of XMPP, iq, message, and presence are the names of the three fundamental XML stanza elements. The type field is an attribute that is commonly found within these stanzas (e.g., <message type='chat'>, <iq type='get'>, <presence type='unavailable'>), used to specify the specific nature or subtype of the stanza. While the phrasing "contains an XMPP stanza" is unusual, type is the only option that functions as an attribute.
presence is one of the three core XMPP stanza elements, used for communicating user availability, not an attribute.
Concept tested: XMPP stanza structure and attributes
Source: https://xmpp.org/rfcs/rfc6120.html
Topics
Community Discussion
No community discussion yet for this question.