|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How generate XML file in Plugin Java |
« View previous topic :: View next topic » |
Author |
Message
|
drano |
Posted: Mon Jul 01, 2002 6:45 am Post subject: How generate XML file in Plugin Java |
|
|
Novice
Joined: 02 May 2002 Posts: 15 Location: Serv'N Data
|
I need to generate a XML file from data in root tree. I am using Plugin Java. Someone has an idea ? I imagine to parse the tree, and generate
XML data, but I think that it is not compliant with MQSI. I suppose that I may use parsing functionalities of MQSI to do it. |
|
Back to top |
|
 |
mpuetz |
Posted: Fri Jul 05, 2002 3:00 pm Post subject: |
|
|
Centurion
Joined: 05 Jul 2001 Posts: 149 Location: IBM/Central WebSphere Services
|
Hi,
there is nothing *wrong* doing it the way you suggest,
but it's also quite hard.
It would be easier to use MQSI using a ResetContentDescriptor
to flush the current tree into the bitstream and then
simply dump this bitstream into a file using a plugin.
This would save you navigating the bistream and do all
the contact admin encoding stuff. _________________ Mathias Puetz
IBM/Central WebSphere Services
WebSphere Business Integration Specialist |
|
Back to top |
|
 |
lillo |
Posted: Sun Jul 07, 2002 11:34 pm Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
Another solution, if you don´t want to use the RCD node, is to have a Compute node before the node with the following code:
SET OutputLocalEnvironment.Variables.XMLFile=BITSTREAM(InputRoot.XML);
Don´t forget to pass the LocalEnvironment and message in the advance tab.
In your java node, you will use the XMLFile in the LocalEnvironment to print the xml to a file or use the trace node.
A hope this help you.
Cheers _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|