|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
PARSE() |
« View previous topic :: View next topic » |
Author |
Message
|
Akshu |
Posted: Fri Oct 25, 2019 3:21 am Post subject: PARSE() |
|
|
Newbie
Joined: 25 Oct 2019 Posts: 3
|
I'm a fresher and new to IIB.
I came across PARSE() function and I have few doubts on that.
The statement thats used in the application is:
PARSE(xPath, inEncoding, inCCSID, 'BLOB', 'XMLNSC')
When I refered IIB site, found the syntax as:
|--PARSE--(--BitStreamExpression--+------------------------------+--)--|
| .-<<-----------------------. |
| V | |
'---+-ENCODING--expression-+-+-'
+-CCSID--expression----+
+-SET--expression------+
+-TYPE--expression-----+
+-FORMAT--expression---+
'-Options--------------'
which mentions When you use the PARSE clause, specify a scalar value containing the bit stream that is to be parsed for BitStreamExpression.
But nowhere in the code, the xpath is converted to bitstream using ASBITSTREAM but it still works fine.
Could anyone please explain why this happens and how the function works ? |
|
Back to top |
|
 |
timber |
Posted: Fri Oct 25, 2019 3:45 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
What is the data type of the varable 'xpath' ? |
|
Back to top |
|
 |
Akshu |
Posted: Fri Oct 25, 2019 7:04 am Post subject: |
|
|
Newbie
Joined: 25 Oct 2019 Posts: 3
|
Actually it's a block which contains Cdata.
I want to parse that cdata as xml and fetch the field values.
Eg: <input>
<outerblock>
<innerblock>
<![CDATA[another xml data]]>
</innerblock>
</outerblock>
</input> |
|
Back to top |
|
 |
Akshu |
Posted: Fri Oct 25, 2019 7:06 am Post subject: |
|
|
Newbie
Joined: 25 Oct 2019 Posts: 3
|
So I gave the XPath as input.outerblock.innerblock |
|
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
|
|
|
|