powered by Jive Software

How to add an XHTML body to a message

Hello all, I’m writing a plugin and having a hard time figuring how I go about adding an xhtml body to a message as described in XEP-0071. In smack, there is XHTMLManager.addBody() which does what I’m looking for but I cannot find anything in the openfire docs that does the same.

My message packet needs to look like so:

  <html xmlns='http://jabber.org/protocol/xhtml-im'>
    <body xmlns='http://www.w3.org/1999/xhtml'>
      <p style='font-weight:bold'>hi!</p>

Any ideas?