Forum Discussion

Sahil's avatar
Sahil
Contributor
4 years ago
Solved

Check if element exists in xml or not

Hi, a requirement where to check if <VW>ER</VW> exists in xml or not. sample xml 1:- <?xml version="1.0" encoding="UTF-8"?> <ORDER> <IDOC BEGIN="1"> <KA1 SEGMENT="1"> <VW>ZB</VW> <T...
  • bojanvelevski's avatar
    4 years ago

    Hey @matthias.voppichler,

    You can use Pipeline Execute. Add the CSV in a child pipeline, and pass the filename as a parameter, that way you can read the parameter and map it on every line that will come out of the CSV Parser using a Mapper. Files will be read one at a time, parsed, and the filename will be added to the lines accordingly.

    You can even combine Marjan’s solution with pipeline execute and again you’ll have the same desired result.

    Regards,
    Bojan