I Want to display XML stanza in console when run the openfire source code using Eclipse

How to display XMLstanza in console?

For Example:

Client?<?xml version=‘1.0’?>

<stream?stream to=‘example.com’ xmlns=‘jabber?client’ xmlns?stream=‘http?//etherx . jabber . org/streams’ version=‘1.0’>

Server?<?xml version=‘1.0’?> <stream?stream from?‘example.com’ id=‘someid’ xmlns=‘jabber?client’

xmlns?stream=‘http?//etherx . jabber . org/streams’

version=‘1.0’>

C?<message from=‘juliet@example.com’ to=‘romeo@example.net’

xml?lang=‘en’>

C?<body> Hello </body>

C?</message>

S?<message from=‘romeo@example.net’ to=‘juliet@example.com’

xml?lang=‘en’>

S?<body> Hello </body>

S?</message>

C?</stream:stream>

S?</stream:stream>

THANKS!

Hey zsl,

Attached you will find the xml debugger plugin that prints to the stdout the XML traffic of clients, external components and connection managers. Today I released a new version of the plugin that adds debugging of components and connection managers. It also adds a new menu item in the admin console to control the things to debug. BTW, Openfire 3.5.0 or later is required.

Regards,

– Gato

thank you for your help! but how to use this plugin?

Do you know ,Maybe the code to print XML Stanza in console has been comment out.

for example :

// System.out .println(" ");