on 04-21-2009 6:01 PM
Hello:
I am using a advance udf function to break a long text field into 2 characters each. It works absolutely fine for the first context node but does not work after.
For eg:
Input structure:
<ns0:MT_in xmlns:ns0="http://xxxx">
-
<MTXH>
-
<MTXL>
-
<TDLine>1122</TDLine>
-
</MTXL>
-
</MTXH>
-
<MTXH>
-
<MTXL>
-
<TDLine>3344</TDLine>
-
</MTXL>
-
</MTXH>
</ns0:MT_in>
The output is:
<ns0:MT_out xmlns:ns0="http://xxxx">
-
<MTXH>
-
<MTXL>
-
<TDline>11</TDline>
-
</MTXL>
-
<MTXL>
-
<TDline>22</TDline>
-
</MTXL>
-
</MTXH>
-
<MTXH>
-
<MTXL/>
-
<MTXL/>
-
</MTXH>
</ns0:MT_out>
As you see above, the second MTXH node doesnot have a TDLINE but my requirement is it should have the values "33 and 44" just like the first MTXH.
Please help with this.
Thanks
MLS
Resolved it myself.
Was using 2 udfs, one to split the text and store them to GlobalContainer and second UDF to retreive it. But using just the first UDF solved it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
make the context of TDline to whole message, that is to MTXH; to do this; right click on TDline choose Context -> MTXH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.