Clarify that the 'reported' element must appear before any
'item' element.
</p>
</remark>
</revision>
<revision>
<version>2.11.0</version>
<date>2020-09-29</date>
@ -295,6 +306,10 @@
<li>One and only <reported/> element, which can be understood as a "table header" describing the data to follow.</li>
<li>Zero or more <item/> elements, which can be understood as "table cells" containing data (if any) that matches the request.</li>
</ol>
<p>The <reported/> element MUST appear before any <item/> element inside the <x/> element.</p>
<pclass="box info">
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.
</p>
<p>The syntax is as follows:</p>
<code><![CDATA[
<xxmlns='jabber:x:data'
@ -317,7 +332,7 @@
.
</x>
]]></code>
<p>Each of these elements 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, the<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).</p>
<p>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).</p>