[jdev] is [ever empty] text element mandatory in error staza?

Matthias Wimmer m at tthias.net
Sun Apr 18 02:26:43 CDT 2004


Hi Alexey!

The <text/> element is optional. Maybe this it not clear in the part you
quoted, where you could think only the text() node contained in the
<text/> element is optional.
At at least in the schemas the <text/> element is defined to be there 0
or 1 times (section C.1).

Tot kijk
    Matthias

Alexey Nezhdanov schrieb am 2004-04-18 10:02:06:
> XMPP-Core says:
> 
> For stream errors:
> <stream:error>
>  <defined-condition xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
>  <text xmlns='urn:ietf:params:xml:ns:xmpp-streams'>
>    OPTIONAL descriptive text
>  </text>
>  [OPTIONAL application-specific condition element]
> </stream:error>
> 
> For stanza errors:
> 
> <stanza-name to='sender' type='error'>
>  [RECOMMENDED to include sender XML here]
>  <error type='error-type'>
>    <defined-condition xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
>    <text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>
>      OPTIONAL descriptive text
>    </text>
>    [OPTIONAL application-specific condition element]
>  </error>
> </stanza-name>
-- 
Fon: +49-(0)70 0770 07770       http://matthias.wimmer.name/
HAM: DB1MW                      xmpp:mawis at charente.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://www.jabber.org/jdev/attachments/20040418/1e8c3cb9/attachment-0002.pgp>


More information about the JDev mailing list