powered by Jive Software

Plugin development - output xml rather than html

Hi,

I’m new to developing plugins for OpenFire and I’m tryign to figure out how I can createa jsp page in my plugin which will return XML rather than HTML. The porblem I’m having at the moment is that to avoid outputting the decorator for the page I have to add <meta name=“decorator” content=“none”/> - but obvioulsy I dont; want this in my XML - though I do want the decorator on other pages in my plugin.

I’ve had a look at the OpenFire plugin dev guide (http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/plugin-d ev-guide.html) but can’t fuigure out form this how I’d achieve what I’m trying to do.

Any pointers/help would be much appreciated.

Cheers

Alex

Hi Alex,

Take a look at the source to the presence plugin (which is included with Openfire source) and you can see how to return XML from a plugin.

Hope that helps,

Ryan

Cheers Ryan - that’s what I was looking for

Alex