Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7849993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:42:33+00:00 2026-06-02T18:42:33+00:00

I’m trying to send a html message using Strophe to a muc room. I

  • 0

I’m trying to send a html message using Strophe to a muc room. I also tried to send the following xml over the XML console in Psi but it doesn’t work, only Hello World is displayed. Is there something wrong with the message stanza?

<message to="room@conference.server" type="groupchat"><body>Hello World </body><html xmlns="http://jabber.org/protocols/xhtml-im"><body xmlns="http://www.w3.org/1999/xhtml"><p style="color : red">Hello HTML World</p></body></html></message>

Thanks!

Edit1: disco#info room query. I’m using Vacuum-IM and Psi clients now, but Psi should support xhtml-im ( http://psi-im.org/wiki/Supported_Protocols )

<iq xmlns="jabber:client" from="room@conference.server" type="result" id="foo" to="admin@server/Vacuum-IM">
<query xmlns="http://jabber.org/protocol/disco#info">
  <identity xmlns="http://jabber.org/protocol/disco#info" category="conference" type="text" name="room"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/muc"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="muc_public"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="muc_open"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="muc_moderated"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="muc_semianonymous"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="muc_unsecured"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="muc_persistent"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/disco#info"/>
  <x xmlns="jabber:x:data" type="result">
    <field xmlns="jabber:x:data" type="hidden" var="FORM_TYPE">
      <value xmlns="jabber:x:data">http://jabber.org/protocol/muc#roominfo</value>
    </field>
    <field xmlns="jabber:x:data" label="Description" var="muc#roominfo_description">
      <value xmlns="jabber:x:data">asdf</value>
    </field>
    <field xmlns="jabber:x:data" label="Subject" var="muc#roominfo_subject">
      <value xmlns="jabber:x:data"/>
    </field>
    <field xmlns="jabber:x:data" label="Number of occupants" var="muc#roominfo_occupants">
      <value xmlns="jabber:x:data">1</value>
    </field>
    <field xmlns="jabber:x:data" label="Creation date" var="x-muc#roominfo_creationdate">
      <value xmlns="jabber:x:data">20120423T17:31:49</value>
    </field>
  </x>
</query>

Edit2: response to the message stanza

 <message xmlns="jabber:client" from="room@conference.server/ad" type="groupchat" to="admin@server/Vacuum-IM">
<body xmlns="jabber:client">Hello World </body>
<html xmlns="http://jabber.org/protocols/xhtml-im">
  <body xmlns="http://www.w3.org/1999/xhtml">
    <p xmlns="http://www.w3.org/1999/xhtml" style="color : red">Hello HTML World</p>
  </body>
</html>

Edit3: response to the muc#traffic query

<iq xmlns="jabber:client" from="room@conference.server" type="error" id="foo" to="admin@server/Vacuum-IM">
<query xmlns="http://jabber.org/protocol/disco#info" node="http://jabber.org/protocol/muc#traffic"/>
<error xmlns="jabber:client" type="cancel" code="404">
  <item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>

Edit4: Psi response to client (features) disco#info (xhtml-im is the last one)

 <iq xmlns="jabber:client" from="admin@kossy.local/Kostyas-MacBook-Pro" type="result" to="admin@kossy.local/Vacuum-IM" id="foo">
<query xmlns="http://jabber.org/protocol/disco#info">
  <identity xmlns="http://jabber.org/protocol/disco#info" category="client" type="pc" name="Psi"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/bytestreams"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/si"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/si/profile/file-transfer"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/disco#info"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/commands"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/rosterx"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/muc"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="jabber:x:data"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="urn:xmpp:jingle:1"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="urn:xmpp:jingle:transports:ice-udp:1"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="urn:xmpp:jingle:apps:rtp:1"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="urn:xmpp:jingle:apps:rtp:audio"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/chatstates"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/mood+notify"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/tune+notify"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/physloc+notify"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/geoloc+notify"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://www.xmpp.org/extensions/xep-0084.html#ns-metadata+notify"/>
  <feature xmlns="http://jabber.org/protocol/disco#info" var="http://jabber.org/protocol/xhtml-im"/>
</query>

Edit5: Solution: Get iChat and Adium 🙂 Adium sends the xhtml messages in different colors and fonts, but it doesn’t display what it has done itself though. Only iChat renders the xhtml properly. So the combination works. Also don’t use p tag and colors should be in hexadecimal form. Example:

<message xmlns="jabber:client" type="groupchat" to="room@conference.server">
<body xmlns="jabber:client">Hello World</body>
<html xmlns="http://jabber.org/protocol/xhtml-im">
  <body xmlns="http://www.w3.org/1999/xhtml">
    <span xmlns="http://www.w3.org/1999/xhtml" style="font-family: Times New Roman; font-size: large; color: #FF0000;">Red text</span>
  </body>
</html>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:42:36+00:00Added an answer on June 2, 2026 at 6:42 pm

    Psi doesn’t, as far as I know, support XHTML-IM. Such clients will only display the normal <body> contents.

    Your example stanza is correct though, so it is either as ggozad suggests, the server removing it (some servers can be configured to do this), or it is simply the client not rendering it.

    Try checking in the XML console of a receiving client to see if the <html> child element is still there after the MUC has broadcast the message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have thousands of HTML files to process using Groovy/Java and I need to
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.