|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Pretty Print XML message |
« View previous topic :: View next topic » |
Author |
Message
|
martc |
Posted: Wed Feb 07, 2007 11:56 am Post subject: Pretty Print XML message |
|
|
Apprentice
Joined: 23 Mar 2005 Posts: 39
|
Hi;
Does anyone know a quick way of 'pretty printing' an incomming XML message? The pp does not have to be that extensive however at a minimum indentations are required.
I know that this could be done using xsl but I was wondering if there is another more native to WBI?
The requirement is to store the incomming message to an 'Imaging' application which reads the message as a blob field.
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 07, 2007 12:07 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I'd look for Java code to do this, and call that from a Java Compute node.
Otherwise, you could write some recursive stuff that would go through a parsed XML logical tree, and insert elements with whitespace in them.
But if you're using XMLNSC, for example, that won't help much.
You could maybe try and get tricky with POSITION and REPLACE, but you'd have to do something to keep track of indentation levels, and that's going to be ... tricky, I guess. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
martc |
Posted: Thu Feb 08, 2007 9:33 am Post subject: |
|
|
Apprentice
Joined: 23 Mar 2005 Posts: 39
|
Thanks!
Helloooooo XSLT  |
|
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
|
|
|
|