arvindnsn
12 months agoContributor
Decode column name that has @ as a prefix
Hello,
I have source data in XML format and all the column entities have "@" as a prefix. I am trying the following expression using "hasPath" function in a mapper to determine if the output of the file has data.
$.hasPath('Extract.Locations.Location.@ID') ? $Extract.Locations.Location : null
It is returning null even though the output has locations data with "@ID" entity.
Below is the screenshot of the XML template and output from the Snaplogic expression window.
How to mention the entities with any special character prefixes in the expression.
Thanks
Aravind N