yrc schrieb:

Thank you all !

I think I gona use something like that:

<message to='...' type='chat' from='...'>
     <x xmlns='http:/some.your.na/mespace'>
         <game nbPlayers='10' />
     </x>
</message>

if I've well understood, this is the best way to do it. (even if I can't find the spec about the <x> tag ;-) I have to search more... )

but i don't understand something: what should i have at the address http:/some.your.na/mespace ? what does it means ?

Put there your personal identifier for your data inside the x-tag. Use an url - others can browse it and maybe find some informations at your url.

In your code, you can in most libraries add an x-tag handler or something quite similar and then 'if' through some namespaces - and then hand the content on to your own function.

I.e.
function handleX(Element x)
if x.xmlns=='your personal namespace'
call YourPersonalNameSpaceHandler(x)
else
DoNothing
end if
end function



Ulrich

_______________________________________________
jdev mailing list
[email protected]
http://mail.jabber.org/mailman/listinfo/jdev

Reply via email to