[jdev] which xmlns to use
Peter Saint-Andre
stpeter at jabber.org
Thu Jul 21 10:28:02 CDT 2005
Tim Fulcher - Clickatell wrote:
> Hi all
>
> I admit that I'm not to clued up on all this namespace stuff, but I'm
> trying to wrap up some data about the user in an IM that that user has
> sent. so I assume that my packet should look something like this:
>
> <message id="JN_5" to=romeo <mailto:to=romeo at capulets.com>
> testing
> @capulets.com"><body>testing</body><x xmlns="jabber.x.data
> some_user_data="foobar" /></message>
>
> So would that be correct? Or would this be OK:
>
> <message id="JN_5" to=romeo <mailto:to=romeo at capulets.com>
> testing
> @capulets.com"><body>testing</body><field xmlns="jabber.x.data
> some_user_data="foobar" /></message>
>
> ?
>
> If neither is correct could somebody point me in the right direction
If this is custom data used by your application, I would advise you to
use a namespace that you control, such as "http://clickatell.com/foo".
However, you probably want to check into the large number of JEPs in
existence (http://www.jabber.org/jeps/) to see if the kind of data you
want to send has already been defined. If not, you can always include a
SHIM header (see JEP-0131), defining a new header name if necessary.
Peter
--
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml
More information about the JDev
mailing list