[JDEV] Custom Namespaces..

Ritu Khetan ritu at netcore.co.in
Wed Apr 17 07:49:51 CDT 2002


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>

which could be wrapped in a <iq/> element.

Hope am not asking for much.

Regards,
Ritu
Quoting Peter Saint-Andre <stpeter at jabber.org>:

> You can call your namespace anything you\'d like, just
be aware that
> namespaces that begin with the string \'jabber:\' are
reserved. Usually your
> custom information would be contained in an <x/>
element within a message
> (you can also include custom info within presence and
iq packets). DJ\'s
> book has information about this and you can learn a
little about how it
> works (for standard namespaces) in the IETF draft:
>
>
http://www.jabber.org/ietf/draft-miller-jabber-00.html#extended
>
> Peter
>
> --
> Peter Saint-Andre
> email+jabber: stpeter at jabber.org
> weblog: http://www.saint-andre.com/blog/
>
> On Tue, 16 Apr 2002, Ritu Khetan wrote:
>
> > Hello,
> >
> >   I have been reading about the Standard Namespaces in
> > Jabber, but haven\\\'t been able to find any
information on
> > defining Custom namespaces.
> > How can I define a new/custom namespace of my own in
Jabber?
> >
> > Regards,
> > Ritu
> >
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> >
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
> 




More information about the JDev mailing list