Hello!
I want to create my own protocol, but there is no documentation on how to
do this.
Client sends:
<iq type="get" from="client@server" to="mycomponent.server">
<query xmlns="jabber:mycomponent:party"/>
</iq>
Server returns:
<iq type="result" from="mycomponent.server" to="client@server">
<query xmlns="jabber:mycomponents:party">
<party type="hacker party">
<participant>
<name>John Carmack</name>
</participant>
<participant>
<name>Alan Cox</name>
</participant>
</party>
</query>
</iq>
But no matter what data I send back to the client, Jabber strips any
elements (subnodes to query) that are not included in an already existing
XML name space.
How do I define my own name space and tell Jabber what data is valid in
that name space.
When I test this Jabber returns my query with TWO instances of
the attribute xmlns="jabber:mycomponents:party" in the query element and
none of the subnodes in the query element.
I can return vcards, time, last and other data in already defined name
spaces, how do I create my own?
/P
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev