I’'m having trouble sending a IQ packet with an self generated XMPP Error. In looking at the code for XMPPError.toXML the method returns xml like:
400
Bad Request
However this doesn’'t match ReadPacket.parseError which parses the format:
<error code=’‘400’’>Bad Request
When I create a new XMPPError and assign it to the IQ like:
myIQ.setError(new XMPPError(“400”,“Bad Request”))
This results in IQ XML that can not be correctly parsed by ReadPacket.parseError.
Am I missing something?
Andy