[JDEV] Custom Namespaces..

David Waite mass at akuma.org
Wed Apr 17 08:23:43 CDT 2002


Ritu Khetan wrote:

>Hi Peter,
>
>  I did go through the IETF draft and DJ\'s book, but
>both of them do not discuss this in detail. I know that
>jabber: cannot be used for custom namespaces.
>I would like to have an example of declaring and
>defining a custom namespace altogether.
>Something like ritu:x:portfolio where I would like to
>have a service to add stock information like:
><portfolio xmlns=ritu:x:portfolio jid=portfolio at localhost>
>  <stockname>ABC</stockname>
>   <price>12</price>
>   <date>20020417</date>
></portfolio>
>
That appears to be correct - you just put custom information in its own 
namespace (not prefixed with "jabber:"), and send it off wrapped in 
another packet, such as an IQ.

-David Waite





More information about the JDev mailing list