[JDEV] Missing nodes in IQ result
Peter Gebauer
peter at restamus.org
Fri Jan 11 06:32:41 CST 2002
Hey there.
I have a loadable module that I use for testing only, it's only purpouse
is to send a timestamp from the server to the client upon request.
This is the XML generated by the module as it is described by logging
using xmlnode2str:
<iq to='test at coke/Test' type='result' id='2' from='test.coke'><query
xmlns='test:systime'><systime>test</systime></query></iq>
The client receives the IQ result with NS and everything intact, except
the <systime> node which is included in the return IQ.
I create the answer manually for better testing control. I use the
xmlnode_* functions to create the node (and subnodes) and finally:
deliver(dpacket_new(xml_iq), test_t->i);
where xml_iq is the node and subnodes. As mentioned before, logging this
node using xmlnode2tstr(xml_iq) produces above written XML data.
Why is it not included in the clients received packet?
/P
More information about the JDev
mailing list