[jdev] my own xml in body tag

Julian Missig julian at jabber.org
Sun May 15 02:12:21 CDT 2005


\On 14 May 2005, at 23:57, Natasha Live wrote:

> Jeremy Nickurak wrote:
>
>
>> On dim, 2005-05-15 at 08:25 +0400, Alexey Nezhdanov wrote:
>>
>>
>>> No. But you could include your own xml in properly namespaced x  
>>> node:
>>>
>>> <message to='...' type='chat' from='...'>
>>>      <x xmlns='http:/some.your.na/mespace'>
>>>          <game nbPlayers='10' />
>>>      </x>
>>> </message>
>>>
>>>
>>
>> Why not just:
>>
>> <message to='...' type='chat' from='...'>
>>     <game xmlns='http://some.your.na/mespace' nbPlayers='10' />
>> </message>
>>
>>
>>
>
> Would that be legal xml if <game/> is not defined in jabber:server  
> or urn:ietf:params:xml:ns:xmpp-stanzas namespaces?


No, the <game/> element exists within the "http://some.your.na/ 
mespace" namespace.

It is, however, against typical Jabber convention. It's legal XML,  
but it's not Jabber convention. Jabber convention is to use the <x/>  
element.

Julian




More information about the JDev mailing list