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 » Length of a xml

Post new topic  Reply to topic
 Length of a xml « View previous topic :: View next topic » 
Author Message
lux
PostPosted: Tue Jul 16, 2002 4:40 am    Post subject: Length of a xml Reply with quote

Newbie

Joined: 25 Jun 2002
Posts: 6
Location: Lisboa

Hello,

In order to afect a field in my message i need to know the length of a block of a XML file.

For example,

i have this block in my xml

<tamanho xsi:type="xsd:int">0</tamanho>
<id_produtor xsi:type="ns2:endereco">
<rede xsi:type="xsd:string"></rede>
<estrutura xsi:type="xsd:string"></estrutura>
<canal xsi:type="xsd:string"></canal>
<pais xsi:type="xsd:string"></pais>
<entidade xsi:type="xsd:string"></entidade>
<elemento xsi:type="xsd:string"></elemento>
<tipo_elemento xsi:type="xsd:string"></tipo_elemento>
</id_produtor>

In my parsed message i want to put de length of the block id_produtor.

Is it possible?

Best regards

Luis
Back to top
View user's profile Send private message MSN Messenger
kirani
PostPosted: Tue Jul 16, 2002 4:13 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

There is no function available in ESQL, which will return you the length of XML tag directly.
You could design your message flow in such a way that XML tag is created as a separate message as BLOB (Use compute node to do this). Then, you could apply LENGTH function on newly created message to get the length of BLOB message. Store this value in Environment Tree, which can be referred in other part of the message flows.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
JLRowe
PostPosted: Wed Jul 17, 2002 3:30 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

You could try using the BITSTREAM function and calculating the resulting length.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Length of a xml
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.