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 » Need to determine the datatype of XML tag contents.

Post new topic  Reply to topic
 Need to determine the datatype of XML tag contents. « View previous topic :: View next topic » 
Author Message
p25200
PostPosted: Fri Sep 15, 2006 10:23 am    Post subject: Need to determine the datatype of XML tag contents. Reply with quote

Newbie

Joined: 14 Jun 2004
Posts: 4

I have a block of XML data that I need to parse and trim (spaces). However, I can only trim those fields that are of a character (or blob) data type. So, if a given field is of the DATE, Integer, or any other numeric types, calling the trim function results in failure.

So, does anyone know if/how I can query the to-be-trimmed field beforehand, to make sure that it is a character field.

-Karl
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Sep 15, 2006 12:29 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You could always parse the data using MRM XML, which will populate the message tree with the correct data types. Depending on what you want to do, that may be enough, because the MRM parser automatically removes insignificant whitespace.
Back to top
View user's profile Send private message
p25200
PostPosted: Fri Sep 15, 2006 12:37 pm    Post subject: Reply with quote

Newbie

Joined: 14 Jun 2004
Posts: 4

Good suggestion. I'll give it a try (next week), and let you know.
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 » Need to determine the datatype of XML tag contents.
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.