|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Length of a xml |
« View previous topic :: View next topic » |
Author |
Message
|
lux |
Posted: Tue Jul 16, 2002 4:40 am Post subject: Length of a xml |
|
|
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 |
|
 |
kirani |
Posted: Tue Jul 16, 2002 4:13 pm Post subject: |
|
|
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 |
|
 |
JLRowe |
Posted: Wed Jul 17, 2002 3:30 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|