XEP-0004: Data Forms
XEP-0004: Data Forms
Abstract
This specification defines an XMPP protocol extension for data forms that can be used in workflows such as service configuration as well as for application-specific data description and reporting. The protocol includes lightweight semantics for forms processing (such as request, response, submit, and cancel), defines several common field types (boolean, list options with single or multiple choice, text with single line or multiple lines, single or multiple JabberIDs, hidden fields, etc.), provides extensibility for future data types, and can be embedded in a wide range of applications. The protocol is not intended to provide complete forms-processing functionality as is provided in the W3C XForms technology, but instead provides a basic subset of such functionality for use by XMPP entities.
Authors
Ryan Eatmon
Joe Hildebrand
Jeremie Miller
Thomas Muldowney
Peter Saint-Andre
SEE LEGAL NOTICES
Status
Final
NOTICE: The protocol defined herein is a
Final Standard
of the XMPP Standards Foundation and can be considered a stable technology for implementation and deployment.
Type
Standards Track
Version
2.13.2 (2024-08-30)
Document Lifecycle
Experimental
Proposed
Stable
Final
1.
Introduction
Several existing Jabber/XMPP protocols involve the exchange of structured data between users and applications for common tasks such as registration (
In-Band Registration (XEP-0077)
]) and searching (
Jabber Search (XEP-0055)
]). Unfortunately, these early protocols were "hard coded" and thus place significant restrictions on the range of information that can be exchanged. Furthermore, other protocols (e.g.,
Multi-User Chat (XEP-0045)
]) may need to exchange data for purposes such as configuration, but the configuration options may differ depending on the specific implementation or deployment. Finally, developers may want to extend other protocols (e.g.,
Service Discovery (XEP-0030)
]) in a flexible manner in order to provide information that is not defined in the base protocol. In all of these cases, it would be helpful to use a generic data description format that can be used for dynamic forms generation and data "modelling" in a variety of circumstances.
An example may be helpful. Let us imagine that when a user creates a multi-user chatroom on a text conferencing service, the service allows the user to configure the room in various ways. While most implementations will probably provide a somewhat common set of configurable features (discussion logging, maximum number of room occupants, etc.), there will be some divergence: perhaps one implementation will enable archiving of the room log in a variety of file types (XML, HTML, PDF, etc.) and for a variety of time periods (hourly, daily, weekly, etc.), whereas another implementation may present a boolean on/off choice of logging in only one format (e.g., daily logs saved in HTML). Obviously, the first implementation will have more configuration options than the second implementation. Rather than "hard-coding" every option via distinct XML elements (e.g., ), a better design would involve a more flexible format.
The 'jabber:x:data' protocol described herein defines such a flexible format for use by Jabber/XMPP entities, steering a middle course between the simplicity of "name-value" pairs and the complexity of
XForms 1.0
] (on which development had just begun when this protocol was designed). In many ways, 'jabber:x:data' is similar to the Forms Module of
XHTML 1.0
]; however, it provides several Jabber-specific data types, enables applications to require data fields, integrates more naturally into the "workflow" semantics of IQ stanzas, and can be included as an extension of existing Jabber/XMPP protocols in ways that the XHTML Forms Module could not when this protocol was developed (especially because
Modularization of XHTML
] did not exist at that time).
2.
Requirements
This document addresses the following requirements:
Data Gathering
-- the protocol should enable a form-processing entity (commonly a server, service, or bot) to gather data from a form-submitting entity (commonly a client controlled by a human user); this should be done via distinct data fields (e.g., items in a questionnaire or configuration form), each of which can be a different data "type" and enable free-form input or a choice between multiple options (as is familiar from HTML forms).
Data Reporting
-- the protocol should enable a form-processing entity to report data (e.g., search results) to a form-submitting entity, again via distinct data fields.
Portability
-- the protocol should as much as possible define generic data formats and basic datatypes only; hints may be provided regarding the user interface, but they should be hints only and not hard-and-fast requirements.
Simplicity
-- the protocol should be simple for clients to implement, and most of the complexity (e.g., data validation and processing) should be the responsibility of servers and components rather than clients.
Flexibility
-- the protocol should be flexible and extensible rather than "hard-coded".
Compatibility
-- the protocol should define an extension to existing Jabber/XMPP protocols and not break existing implementations unless absolutely necessary.
3.
Protocol
The base syntax for the 'jabber:x:data' namespace is as follows (a formal description can be found in the
XML Schema
section below):
type='{form-type}'>
<br><instructions/><br><field var='field-name'<br>type='{field-type}'<br>label='description'><br><desc/><br><required/><br><value>field-value</value><br><option label='option-label'><value>option-value</value></option><br><option label='option-label'><value>option-value</value></option><br></field><br></x><br>The <x/> element qualified by the 'jabber:x:data' namespace SHOULD be included either directly as a first-level child of a <message/> stanza or as a second-level child of an <iq/> stanza (where the first-level child is an element qualified by a "wrapper" namespace); see also the restrictions enumerated below.<br>The OPTIONAL <title/> and <instructions/> elements enable the form-processing entity to label the form as a whole and specify natural-language instructions to be followed by the form-submitting entity. The XML character data for these elements SHOULD NOT contain newlines (the \n and \r characters), and any handling of newlines (e.g., presentation in a user interface) is unspecified herein; however, multiple instances of the <instructions/> element MAY be included.<br>3.1 Form Types<br>The data gathered or provided in a 'jabber:x:data' form can be situated in a number of different contexts. Examples include an empty form that needs to be filled out, a completed form, the results of a submission, a search result, or simply a set of data that is encapsulated using the 'jabber:x:data' namespace. The full context for the data is provided by three things:<br>the "wrapper" protocol (i.e., the namespace whose root element is the direct child of the <iq/> stanza and the parent of the <x/> element qualified by the 'jabber:x:data' namespace)<br>the place of the form within a transaction (e.g., an IQ "set" or "result") or structured conversation (e.g., a message <thread/>)<br>the 'type' attribute on the form's root <x/> element<br>The first two pieces of contextual information are provided by other protocols, whereas the form types are described in the following table.<br>Table 1:<br>Form Types<br>Type<br>Description<br>form<br>The form-processing entity is asking the form-submitting entity to complete a form.<br>submit<br>The form-submitting entity is submitting data to the form-processing entity. The submission MAY include fields that were not provided in the empty form, but the form-processing entity MUST ignore any fields that it does not understand. Furthermore, the submission MAY omit fields not marked with <required/> by the form-processing entity.<br>cancel<br>The form-submitting entity has cancelled submission of data to the form-processing entity.<br>result<br>The form-processing entity is returning data (e.g., search results) to the form-submitting entity, or the data is a generic data set.<br>In order to maintain the context of the data as captured in the form type, the following rules MUST be observed:<br>For <iq/> stanzas, the root element qualified by the "wrapper" namespace in a form of type "form" or "submit" MUST be returned in a form of type "result". The <x/> element qualified by the 'jabber:x:data' namespace MUST be a child of the "wrapper" namespace's root element. As defined in<br>XMPP Core<br>], the 'id' attribute MUST be copied in the IQ result. For data forms of type "form" or "result", the <iq/> stanza SHOULD be of type "result". For data forms of type "submit" or "cancel", the <iq/> stanza SHOULD be of type "set".<br>For <message/> stanzas, the <thread/> SHOULD be copied in the reply if provided. The <x/> element qualified by the 'jabber:x:data' namespace MUST be a child of the <message/> stanza.<br>3.2 The Field Element<br>A data form of type "form", "submit", or "result" SHOULD contain at least one <field/> element; a data form of type "cancel" SHOULD NOT contain any <field/> elements.<br>The <field/> element MAY contain any of the following child elements:<br><desc/><br>The XML character data of this element provides a natural-language description of the field, intended for presentation in a user-agent (e.g., as a "tool-tip", help button, or explanatory text provided near the field). The <desc/> element SHOULD NOT contain newlines (the \n and \r characters), since layout is the responsibility of a user agent, and any handling of newlines (e.g., presentation in a user interface) is unspecified herein. (Note: To provide a description of a field, it is RECOMMENDED to use a <desc/> element rather than a separate <field/> element of type "fixed".)<br><required/><br>This element, which MUST be empty, flags the field as required in order for the form to be considered valid.<br><value/><br>The XML character data of this element defines the default value for the field (according to the form-processing entity) in a data form of type "form", the data provided by a form-submitting entity in a data form of type "submit", or a data result in a data form of type "result". In data forms of type "form", if the form-processing entity provides a default value via the <value/> element, then the form-submitting entity SHOULD NOT attempt to enforce a different default value (although it MAY do so to respect user preferences or anticipate expected user input). Fields of type list-multi, jid-multi, text-multi, and hidden MAY contain more than one <value/> element; all other field types MUST NOT contain more than one <value/> element.<br><option/><br>One of the options in a field of type "list-single" or "list-multi". The XML character of the <value/> child defines the option value, and the 'label' attribute defines a human-readable name for the option. The <option/> element MUST contain one and only one <value/> child. If the field is not of type "list-single" or "list-multi", it MUST NOT contain an <option/> element.<br>If the <field/> element type is anything other than "fixed" (see below), it MUST possess a 'var' attribute that uniquely identifies the field in the context of the form (if it is "fixed", it MAY possess a 'var' attribute). The <field/> element MAY possess a 'label' attribute that defines a human-readable name for the field.<br>The 'type' attribute defines the data "type" of the field data. The following rules apply for that attribute:<br>For data forms of type "form", each <field/> element SHOULD possess a 'type' attribute. If the 'type' attribute is absent, the default of "text-single" is to be applied.<br>For data forms of type "submit", "result" or "error", the recieving entity can infer the 'type' attribute value from context. Nevertheless, the 'type' attribute MAY be present for clarity. Note that forms of type "error" SHOULD NOT have any <field/> elements.<br>If fields are presented in a user interface (e.g., as items in a questionnaire or form result), the order of the field elements in the XML SHOULD determine the order of items presented to the user.<br>3.3 Field Types<br>The following field types represent data "types" that are commonly exchanged between Jabber/XMPP entities. These field types are not intended to be as comprehensive as the datatypes defined in, for example,<br>XML Schema Part 2<br>], nor do they define user interface elements.<br>Table 2:<br>Field Types<br>Type<br>Description<br>boolean<br>The field enables an entity to gather or provide an either-or choice between two options. The default value is "false". [<br>10<br>fixed<br>The field is intended for data description (e.g., human-readable text such as "section" headers) rather than data gathering or provision. The <value/> child SHOULD NOT contain newlines (the \n and \r characters); instead an application SHOULD generate multiple fixed fields, each with one <value/> child.<br>hidden<br>The field is not shown to the form-submitting entity, but instead is returned with the form. The form-submitting entity SHOULD NOT modify the value of a hidden field, but MAY do so if such behavior is defined for the "using protocol".<br>jid-multi<br>The field enables an entity to gather or provide multiple Jabber IDs. Each provided JID SHOULD be unique (as determined by comparison that includes application of the Nodeprep, Nameprep, and Resourceprep profiles of Stringprep as specified in<br>XMPP Core<br>), and duplicate JIDs MUST be ignored. *<br>jid-single<br>The field enables an entity to gather or provide a single Jabber ID. *<br>list-multi<br>The field enables an entity to gather or provide one or more options from among many. A form-submitting entity chooses one or more items from among the options presented by the form-processing entity and MUST NOT insert new options. The form-submitting entity MUST NOT modify the order of items as received from the form-processing entity, since the order of items MAY be significant.**<br>list-single<br>The field enables an entity to gather or provide one option from among many. A form-submitting entity chooses one item from among the options presented by the form-processing entity and MUST NOT insert new options. **<br>text-multi<br>The field enables an entity to gather or provide multiple lines of text. ***<br>text-private<br>The field enables an entity to gather or provide a single line or word of text, which shall be obscured in an interface (e.g., with multiple instances of the asterisk character).<br>text-single<br>The field enables an entity to gather or provide a single line or word of text, which may be shown in an interface. This field type is the default and MUST be assumed if a form-submitting entity receives a field type it does not understand.<br>* Note: Data provided for fields of type "jid-single" or "jid-multi" MUST contain one or more valid Jabber IDs, where validity is determined by the addressing rules defined in<br>XMPP Core<br>(see the<br>Data Validation<br>section below).<br>** Note: The <option/> elements in list-multi and list-single fields MUST be unique, where uniqueness is determined by the value of the 'label' attribute and the XML character data of the <value/> element (i.e., both must be unique).<br>*** Note: Data provided for fields of type "text-multi" SHOULD NOT contain any newlines (the \n and \r characters). Instead, the application SHOULD split the data into multiple strings (based on the newlines inserted by the platform), then specify each string as the XML character data of a distinct <value/> element. Similarly, an application that receives multiple <value/> elements for a field of type "text-multi" SHOULD merge the XML character data of the value elements into one text block for presentation to a user, with each string separated by a newline character as appropriate for that platform.<br>3.4 Multiple Items in Form Results<br>In some contexts (e.g., the results of a search request), it may be necessary to communicate multiple items. Therefore, a data form of type "result" MAY contain two child elements not described in the basic syntax above:<br>One and only one <reported/> element, which can be understood as a "table header" describing the data to follow.<br>Zero or more <item/> elements, which can be understood as "table cells" containing data (if any) that matches the request.<br>The <reported/> element MUST appear before any <item/> element inside the <x/> element. Forms of this type MUST NOT contain any top-level fields other than <reported/> and <item/>.<br>Older revisions of this XEP (before 2.12.0) did not contain an explicit requirement for the ordering between <reported> and <item>. Implementations are therefore encouraged to be flexible when processing incoming data, as there might still be implementations which do not implement a strict ordering when generating reports.<br>Similarly, revisions of this XEP before 2.13.1 were ambiguous about whether <reported/> and <item/> elements could co-exist with other top level elements such as <field/> and <title/> and various implementations are known to have handled this in different ways.<br>The syntax is as follows:<br><x xmlns='jabber:x:data'<br>type='result'><br><reported><br><field var='field-name' label='description' type='{field-type}'/><br></reported><br><item><br><field var='field-name'><br><value>field-value</value><br></field><br></item><br><item><br><field var='field-name'><br><value>field-value</value><br></field><br></item><br></x><br>Each of these <item/> elements and the <reported/> element MUST contain one or more <field/> children. The <reported/> element defines the data format for the result items by specifying the fields to be expected for each item; for this reason, its <field/> elements SHOULD possess a 'type' attribute and 'label' attribute in addition to the 'var' attribute, and SHOULD NOT contain a <value/> element. Each <item/> element defines one item in the result set, and MUST contain each field specified in the <reported/> element (although the XML character data of the <value/> element MAY be null).<br>3.5 Incomplete Submission Form Handling<br>An incomplete submission form is a data form of the type "submit" that contains all required fields but some optional fields are omitted. The receiving entity of an incomplete submission form SHOULD only process (e.g., apply) the submitted fields. If applicable, the values of the omitted fields SHOULD keep their current value. The current value is often the value found in the corresponding form of the type "form".<br>3.6 Setting empty or absent values<br>As specified in the previous section, the values of the omitted fields SHOULD keep their current value. From this, it follows that 'unsetting' a field value requires a request to contain a <field/> element.<br>This XEP does not standardize a way to differentiate between an "empty" and "absent" value. Unless other XEPs explicitly define these semantics, implementations can be expected to use a variety of representations, such as <field><value/></field> or <field/> to signal the absence of a (non-empty) value.<br>4.<br>Data Validation<br>Data validation is the responsibility of the form-processing entity (commonly a server, service, or bot) rather than the form-submitting entity (commonly a client controlled by a human user). This helps to meet the requirement for keeping client implementations simple. If the form-processing entity determines that the data provided is not valid, it SHOULD return a "Not Acceptable" error, optionally providing a textual explanation in the XMPP <text/> element or an application-specific child element that identifies the problem (see<br>Error Condition Mappings (XEP-0086)<br>11<br>] for information about mappings and formats).<br>5.<br>Examples<br>For the sake of the following examples, let us suppose that there exists a bot hosting service on the Jabber network, located at <botster.shakespeare.lit>. This service enables registered users to create and configure new bots, find and interact with existing bots, and so on. We will assume that these interactions occur using the<br>Ad-Hoc Commands (XEP-0050)<br>12<br>] protocol, which is used as a "wrapper" protocol for data forms qualified by the 'jabber:x:data' namespace. The examples in the sections that follow show most of the features of the data forms protocol described above.<br>Note: Additional examples can be found in the specifications for various "using protocols", such as<br>XEP-0045: Multi-User Chat<br>and<br>XEP-0055: Jabber Search<br>5.1 Configuration<br>The first step is for a user to create a new bot on the hosting service. We will assume that this is done by sending a "create" command to the desired bot:<br>Example 1.<br>User Requests Bot Creation<br><iq from='romeo@montague.net/home'<br>to='joogle@botster.shakespeare.lit'<br>type='get'<br>xml:lang='en'<br>id='create1'><br><command xmlns='http://jabber.org/protocol/commands'<br>node='create'<br>action='execute'/><br></iq><br>The hosting service then returns a data form to the user:<br>Example 2.<br>Service Returns Bot Creation Form<br><iq from='joogle@botster.shakespeare.lit'<br>to='romeo@montague.net/home'<br>type='result'<br>xml:lang='en'<br>id='create1'><br><command xmlns='http://jabber.org/protocol/commands'<br>node='create'<br>sessionid='create:20040408T0128Z'<br>status='executing'><br><x xmlns='jabber:x:data' type='form'><br><title>Bot Configuration
Fill out this form to configure your new bot!
var='FORM_TYPE'>
jabber:bot

Section 1: Bot Info
label='The name of your bot'
var='botname'/>
label='Helpful description of your bot'
var='description'/>
label='Public bot?'
var='public'>


label='Password for special access'
var='password'/>
Section 2: Features
label='What features will the bot support?'
var='features'>





news
search

Section 3: Subscriber List
label='Maximum number of subscribers'
var='maxsubs'>
20







Section 4: Invitations
label='People to invite'
var='invitelist'>
Tell all your friends about your new bot!




The user then submits the configuration form:
Example 3.
User Submits Bot Creation Form
to='joogle@botster.shakespeare.lit'
type='set'
xml:lang='en'
id='create2'>
node='create'
sessionid='create:20040408T0128Z'>


jabber:bot


The Jabber Google Bot


This bot enables you to send requests to
Google and receive the search results right
in your Jabber client. It' really cool!
It even supports Google News!


0


v3r0na


news
search


50


juliet@capulet.com
benvolio@montague.net




The service then returns the results to the user:
Example 4.
Service Returns Bot Creation Result
to='romeo@montague.net/home'
type='result'
xml:lang='en'
id='create2'>
node='create'
sessionid='create:20040408T0128Z'
status='completed'>


jabber:bot


The Jabber Google Bot


0


v3r0na


news
search


50


juliet@capulet.com
benvolio@montague.net




5.2 Search
Now that the user has created this search bot, let us suppose that one of the friends he has invited decides to try it out by sending a search request:
Example 5.
User Requests Search Form
to='joogle@botster.shakespeare.lit'
type='get'
xml:lang='en'
id='search1'>
node='search'
action='execute'/>

Example 6.
Service Returns Search Form
to='juliet@capulet.com/chamber'
type='result'
xml:lang='en'
id='search1'>
node='search'
status='executing'>

Joogle Search
Fill out this form to search for information!
var='search_request'>





Example 7.
User Submits Search Form
to='joogle@botster.shakespeare.lit'
type='get'
xml:lang='en'
id='search2'>
node='search'>


verona




Example 8.
Service Returns Search Results
to='juliet@capulet.com/chamber'
type='result'
xml:lang='en'
id='search2'>
node='search'
status='completed'>

Joogle Search: verona






Comune di Verona - Benvenuti nel sito ufficiale


http://www.comune.verona.it/




benvenuto!


http://www.hellasverona.it/




Universita degli Studi di Verona - Home Page


http://www.univr.it/




Aeroporti del Garda


http://www.aeroportoverona.it/




Veronafiere - fiera di Verona


http://www.veronafiere.it/





6.
Service Discovery
If an entity supports inclusion of the element qualified by the 'jabber:x:data' namespace as a direct child of the stanza type, it MUST report support by including a service discovery feature of "jabber:x:data" (see
Protocol Namespaces
regarding issuance of one or more permanent namespaces) in response to a Service Discovery information request:
Example 9.
Service Discovery information request
from='romeo@montague.net/orchard'
to='juliet@capulet.com/balcony'
id='disco1'>


Example 10.
Service Discovery information response
from='juliet@capulet.com/balcony'
to='romeo@montague.net/orchard'
id='disco1'>

...

...


If an entity supports data forms indirectly through inclusion of data forms in a wrapper namespace (rather than directly within a stanza), it MUST NOT advertise support for the 'jabber:x:data' namespace, since support is implicit in support for the wrapper protocol.
7.
Security Considerations
There are no security concerns related to this specification above and beyond those described in the relevant section of
XMPP Core
8.
IANA Considerations
This document requires no interaction with the
Internet Assigned Numbers Authority (IANA)
13
].
9.
XMPP Registrar Considerations
9.1 Protocol Namespaces
The
XMPP Registrar
14
] includes the 'jabber:x:data' namespace in its registry of protocol namespaces.
9.2 Parameter Values
The XMPP Registrar maintains a registry of parameter values related to the 'jabber:x:data' namespace, specifically as defined in
Field Standardization for Data Forms (XEP-0068)
15
]; the registry is located at <
>.
10.
XML Schema
This schema is descriptive, not normative.

xmlns:xs='http://www.w3.org/2001/XMLSchema'
targetNamespace='jabber:x:data'
xmlns='jabber:x:data'
elementFormDefault='qualified'>



The protocol documented by this schema is defined in
XEP-0004: http://www.xmpp.org/extensions/xep-0004.html




minOccurs='0'
maxOccurs='unbounded'
type='xs:string'/>





















































When contained in a "reported" element, the "field" element
SHOULD NOT contain a "value" child.


















11.
Changes in Final State
The following substantive protocol changes have been made while this specification has been in the Final state:
Specified that the 'var' attribute is required for all field types except "fixed", for which the 'var' attribute is optional.
Specified when to advertise support via service discovery.
Removed references to stanzas.
12.
Changes in Draft State
The following substantive protocol changes were made while this specification was in the Draft state:
The element MAY be included directly in and stanzas.
The element MAY contain a child for forms and results.<br>The <x/> element MUST possess a 'type' attribute.<br>A <field/> element MAY be of type='jid-single'.<br>Results MAY be reported back in <item/> tags.<br>Results MAY contain a <reported/> element with result set.<br>The <reported/> fields MAY possess a 'type' attribute to provide hints about how to interact with the data (type='jid-single' being the most useful).<br>Appendices<br>Appendix A: Document Information<br>Series<br>XEP<br>Number<br>0004<br>Publisher<br>XMPP Standards Foundation<br>Status<br>Final<br>Type<br>Standards Track<br>Version<br>2.13.2<br>2024-08-30<br>Approving Body<br>XMPP Council<br>Dependencies<br>XMPP Core<br>Supersedes<br>None<br>Superseded By<br>None<br>Short Name<br>x-data<br>Schema<br>Source Control<br>HTML<br>This document in other formats:<br>XML<br>PDF<br>Appendix B: Author Information<br>Ryan Eatmon<br>Email<br>reatmon@jabber.org<br>JabberID<br>reatmon@jabber.org<br>Joe Hildebrand<br>Email<br>jhildebr@cisco.com<br>JabberID<br>hildjj@jabber.org<br>Jeremie Miller<br>Email<br>jer@jabber.org<br>JabberID<br>jer@jabber.org<br>Thomas Muldowney<br>Email<br>temas@jabber.org<br>JabberID<br>temas@jabber.org<br>Peter Saint-Andre<br>Email<br>stpeter@stpeter.im<br>JabberID<br>stpeter@jabber.org<br>URI<br>Appendix C: Legal Notices<br>This XMPP Extension Protocol is copyright © 1999 – 2024 by the<br>XMPP Standards Foundation<br>(XSF).<br>Permissions<br>Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.<br>Disclaimer of Warranty<br>## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##<br>Limitation of Liability<br>In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.<br>IPR Conformance<br>This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at <<br>> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).<br>Visual Presentation<br>The HTML representation (you are looking at) is maintained by the XSF. It is based on the<br>YAML CSS Framework<br>, which is licensed under the terms of the<br>CC-BY-SA 2.0<br>license.<br>Appendix D: Relation to XMPP<br>The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 6120) and XMPP IM (RFC 6121) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.<br>Appendix E: Discussion Venue<br>The primary venue for discussion of XMPP Extension Protocols is the <<br>standards@xmpp.org<br>> discussion list.<br>Discussion on other xmpp.org discussion lists might also be appropriate; see <<br>> for a complete list.<br>Errata can be sent to <<br>editor@xmpp.org<br>>.<br>Appendix F: Requirements Conformance<br>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",<br>"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",<br>"MAY", and "OPTIONAL" in this document are to be interpreted as<br>described in<br>BCP 14<br>RFC2119<br>RFC8174<br>] when,<br>and only when, they appear in all capitals, as shown here.<br>Appendix G: Notes<br>. XEP-0077: In-Band Registration <<br>>.<br>. XEP-0055: Jabber Search <<br>>.<br>. XEP-0045: Multi-User Chat <<br>>.<br>. XEP-0030: Service Discovery <<br>>.<br>. XForms 1.0 <<br>>.<br>. XHTML 1.0 <<br>>.<br>. Modularization of XHTML <<br>>.<br>. RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core <<br>>.<br>. XML Schema Part 2: Datatypes <<br>>.<br>10<br>. In accordance with Section 3.2.2.1 of<br>XML Schema Part 2: Datatypes<br>, the allowable lexical representations for the xs:boolean datatype are the strings "0" and "false" for the concept 'false' and the strings "1" and "true" for the concept 'true'; implementations MUST support both styles of lexical representation.<br>11<br>. XEP-0086: Error Condition Mappings <<br>>.<br>12<br>. XEP-0050: Ad-Hoc Commands <<br>>.<br>13<br>. The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <<br>>.<br>14<br>. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <<br>>.<br>15<br>. XEP-0068: Field Data Standardization for Data Forms <<br>>.<br>Appendix H: Revision History<br>Note: Older versions of this specification might be available at<br>Version<br>2.13.2<br>(2024-08-30)<br>Add section on empty and absent values.<br>gk<br>Version<br>2.13.1<br>(2022-07-25)<br>Clarify elements allowed in multi-item data forms<br>ssw<br>Version<br>2.13.0<br>(2022-01-21)<br>Add incomplete submission form handling<br>melvo<br>Version<br>2.12.1<br>(2021-06-08)<br>Add missing "one" in a sentence (editorial).<br>ssw<br>Version<br>2.12.0<br>(2021-02-27)<br>Clarify that the 'reported' element must appear before any<br>'item' element.<br>fs, jsc<br>Version<br>2.11.0<br>(2020-09-29)<br>Further clarify the presence requirements for the type attribute on fields.<br>fs, jsc<br>Version<br>2.10.0<br>(2020-05-05)<br>Clarify that fields which are not required may be omitted on submission.<br>fs<br>Version<br>2.9<br>(2007-08-13)<br>Clarified the definition and handling of the list-multi and list-single field types; specified that hidden field values should not be modified unless such behavior is defined for the using protocol; specified that a submission should include all fields provided in the empty form and may include additional fields, but that additional fields must be ignored if not understood by the form-processing entity.<br>psa<br>Version<br>2.8<br>(2007-05-21)<br>Removed mentions of presence stanzas; added section on discovering support; added section on substantive changes in Final state.<br>psa<br>Version<br>2.7<br>(2006-01-25)<br>Incorporated errata: (1) clarified rules regarding inclusion of option and value elements depending on field type; (2) clarified handling of default values; (3) added value elements to list-multi field in Example 2; (4) harmonized spelling of form-processing entity and form-submitting entity.<br>psa<br>Version<br>2.6<br>(2004-10-13)<br>Incorporated errata: (1) corrected syntax of <reported/> element (<field/> element should not contain a <value/> child); (2) corrected Example 8.<br>psa<br>Version<br>2.5<br>(2004-05-07)<br>Clarified terminology regarding form-processing entities and form-submitting entities; corrected several small errors in the schema.<br>psa<br>Version<br>2.4<br>(2004-05-04)<br>Per discussion by the authors and Jabber Council, specified that the 'var' attribute is required for all field types except "fixed", for which the 'var' attribute is optional.<br>psa<br>Version<br>2.3<br>(2004-03-31)<br>Formalization and further editorial revisions.<br>psa<br>Version<br>2.2<br>(2004-01-22)<br>Editorial revisions.<br>psa<br>Version<br>2.1<br>(2003-02-16)<br>Added schema.<br>psa<br>Version<br>2.0<br>(2002-12-09)<br>Per a vote of the Jabber Council, changed status to Final.<br>psa<br>Version<br>1.1<br>(2002-10-15)<br>Call for Experience changes (see<br>Changes in Draft State<br>section). This version voted to Final on 2002-12-09.<br>rwe<br>Version<br>1.0<br>(2002-04-24)<br>Per a vote of the Jabber Council, changed status to Draft.<br>psa<br>Version<br>0.6<br>(2002-03-15)<br>Protocol tweaks based on Standards list discussion.<br>rwe<br>Version<br>0.5<br>(2002-02-06)<br>Protocol tweaks based on implementation and discussion.<br>rwe<br>Version<br>0.4<br>(2001-11-16)<br>Major redesign to attempt to clarify the scope of this document and limit what it is trying to solve.<br>rwe<br>Version<br>0.3<br>(2001-07-23)<br>Protocol update<br>rwe<br>Version<br>0.2<br>(2001-06-29)<br>Protocol update and DocBook version<br>rwe<br>Version<br>0.1<br>(2001-01-25)<br>Initial release<br>rwe<br>Appendix I: Bib(La)TeX Entry<br>@report{eatmon2001x-data,<br>title = {Data Forms},<br>author = {Eatmon, Ryan and Hildebrand, Joe and Miller, Jeremie and Muldowney, Thomas and Saint-Andre, Peter},<br>type = {XEP},<br>number = {0004},<br>version = {2.13.2},<br>institution = {XMPP Standards Foundation},<br>url = {https://xmpp.org/extensions/xep-0004.html},<br>date = {2001-01-25/2024-08-30},<br>END</p></div> </div> <div class="detail-actions"> <a href="/search?q=xmpp.org" class="btn">Same domain →</a> <a href="/search?q=XEP-0004%3A%20Data%20Forms" class="btn btn-secondary">Similar titles →</a> </div> </article> </main> <footer class="site-footer"> <div class="container"> <p>C U Cyber History — Public Interest Web Archive</p> <p class="footer-small">Preserving fading web memories. Discover history that once existed.</p> </div> </footer> <script id="chat-i18n-en" type="application/json">{"button_label":"Need Help?","placeholder":"Ask us anything...","title":"CUCH Assistant","subtitle":"How can we help you?","send":"Send","close":"Close","folder":"/var/www/cu","greeting":"Hi! Welcome to CUCH.org. How can I help you today? Feel free to ask about our archive, search, or anything else!","error":"Sorry, our service is temporarily unavailable. Please try again later.","banner_text":"Need help? Ask our AI assistant!"}</script> <script src="/static/js/chat-widget.js"></script> </body> </html>