ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Pretty Print XML message

Post new topic  Reply to topic
 Pretty Print XML message « View previous topic :: View next topic » 
Author Message
martc
PostPosted: Wed Feb 07, 2007 11:56 am    Post subject: Pretty Print XML message Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 07, 2007 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
martc
PostPosted: Thu Feb 08, 2007 9:33 am    Post subject: Reply with quote

Apprentice

Joined: 23 Mar 2005
Posts: 39

Thanks!

Helloooooo XSLT
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Pretty Print XML message
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.