Question
When outputting XML data, I would not like to output empty tags when the input data does not have any information.
How can I accomplish this?
Answer
By using the If Loop logic in a loop process, it is possible not to output empty tags for nodes with no input data.
Process overview
Mapper checks whether or not each element is empty, and outputs data only when element is not empty.
- Check whether the target element matches empty character or not.
Logics used
Different
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/StringNotEqual.htm
Single-line String Constant
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/SingleLineStringConstant.htm
- Perform If Loop logic on the element and output only if it does not match empty string.
Logic used
If Loop
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/IfLoop.htm
Comments
0 comments
Article is closed for comments.