On 2005-07-07, Orion wrote: > Hi, > > I am new to jabber, using ejabberd 0.9.1 and Psi. > > I am able to create a node and publish an item. > for example: > ======================================================= > <iq type="set" > from="[EMAIL PROTECTED]" > to="pubsub.localhost" > id="publish1"> > <pubsub xmlns="http://jabber.org/protocol/pubsub"> > <publish node="home/localhost/admin/egw"> > <item id="current"> > <tune xmlns="http://jabber.org/protocol/tune"> > <artist>Ralph Vaughan Williams</artist> > <title>Concerto in F for Bass Tuba</title> > <source>Golden Brass: The Collector's Edition</source> > </tune> > </item> > </publish> > </pubsub> > </iq> > ======================================================= > > I found that subscribers can only view the message in XML console. My question > is: How can the subscribers get the published item like normal chat > message(signal the subscriber for incoming message)?
The message doesn't contain a <body/> element, so clients that don't know about pubsub don't have anything to show. One solution is for the pubsub service to include a summary in the <body/> element (perhaps it would be helpful to define the summary mechanism in JEP-0060). Peter -- Peter Saint-Andre Jabber Software Foundation http://www.jabber.org/people/stpeter.shtml
smime.p7s
Description: S/MIME Cryptographic Signature
