Biztalk mapper: how to detect a node that do not come in the xml
I would like to know how to detect that a node is not present in the origin. I have tried hundreds of things with the logical functoids 开发者_运维问答with no success.
The third case of this page is what I am looking for: http://danshultz.blogspot.com/2007/08/logical-existence-isnil-empty-string.html
Thanks in advance.
You can use the Logical Existence functoid. If the element is missing from the source message, this functoid will return false.
If you need to perform some logic based on the element being missing (like map a default value to the output message), pass the Logical Existence functoid output to a Logical Not to return true, then connect the Logical Not output to a Value Mapping functoid with the second input set to whatever you want the default value to be.
The only way I have managed to do it in a map is through XSLT in a scripting functoid.
if it is an element use logical string.
if you want to check record or node then use logical string and connect it to any element under that node or record.
let me know if this works out for u or not.
精彩评论