Originally posted by: repanzer1
I have only used XPATH a small amount in 8.1 a few months ago, but, we deploy to MVS mainframe and the XPATH function did not work at all on that platform.
So, we were told to upgrade to 8.3, as the problem was supposedly fixed.
The problem now is, and this is on the PC side, the XPATH function in 8.3 is returning attribute values along with tag content.
For example, in 8.1, the following would return "TEST";
=xmllib->XPATH( TEXT(Input1), "/MxML/contracts/contract/contractHeader/contractCategory/typology", "/" )
<contractHeader type="contractHeader">
<contractCategory type="contractCategory">
<typology type="string">TEST</typology>
<mainTypologyPath type="string">/Typologies/IRD/FRA</mainTypologyPath>
The same exact rule in 8.3 is returning;
"stringTEST"
So it's returning the value in the "type" attribute along with the actual content in the typology tag.
Anyone else encounter this? I was thinking that maybe this was expected behavior, because maybe you would want to grab the value in the attribute, but there is nothing in the documentation to specify, and there is no delimiter between the attribute values and the value in the tag, so it may be difficult to distinguish the strings.
If anyone has hit this and thought of a solution, please let me know.
There are 10 types of people in this world. Those who understand binary and those who don't.
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender