powered by Jive Software

How Can I add xml tags into iq xmpp message?

Hi everybody,

I’ m trying to include xml tags in xmpp message (for example iq type).

I want to receive a custom message like this:

pmlcore:Sensor

</pmlcore:Sensor>

When I send this message from PSI XML Console, PSI is disconnected from server.

Should I define a new xml schema and import it in openfire? And in this case how I have to do?

Thanks in advantage

If I remind correct, each IQ-Packet needs an “id” attribute. Try this one:

<iq type="get" to="usr_local@server" id="randomIDnumber">
<query xmlns="custom:iq:prova">
<pmlcore:Sensor>
</pmlcore:Sensor>
</query>
</iq>