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:[EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
https://jabberstudio.org/mailman/listinfo/jdev

Reply via email to