[JDEV] Weird syntax of jabber:iq:browse results
dwaite at jabber.com
Wed Apr 25 23:03:06 CDT 2001
There should be a namespace for the element within the iq, e.g.
<iq type='result'><service xmlns='jabber:iq:browse' .....</iq> - is something returning a result without this? The children of the element are in the same namespace, so it does not need to be specified again.
An element with a xml namespace is in that namespace, not the namespace of the parent tag. there is no <query> element as a child of iq, and no <x> element as a child of message or presence.
Jens Alfke wrote:
> According to the examples in the JPO [1.6.5], the results of jabber:iq:browse queries have a weird/nonstandard structure. The <iq type=result> node has direct child elements that are browse-specific, like <service> or <conference>, and there's no xmlns specified. Isn't this illegal?
> I'm guessing that these examples are incorrect and that the contents of the <iq> should actually be a standard <query xmlns="jabber:iq:browse> element containing the browse-specific stuff. Correct?
More information about the JDev