โ04-19-2022 06:00 AM
Hi,
Iโve some fields containing < > (html tags) that needs to go into XML generator and provide desired output however the fields come in as a raw string and doesnโt do itโs work as โEscape special charactersโ in XML generator has been turned ON. If this option is turned off, the pipeline doesnโt even run.
Any workaround on how to ingest <> in XML generator with the pipeline running as well?
Thanks!
Best Regards,
DT
Solved! Go to Solution.
โ04-21-2022 06:39 AM
Values inside tags like < >, etc
can not be ingested into XML Generator without any customization. By default, those values will be converted to snapLogicโs predefined symbols which can be found in the below 2 links:
Link 1
Link 2
I went with a different route for my development so the concern I was having has been resolved. Instead of passing those values inside < >
(native html tags) inside an XML generator, I defined the html format in mapper/file writer itself so the format took care of the required output. Remember, the file name should be .html (if the use case is to generate html files; the format could be different as per the use case) to see these changes happening.
The suggestions/solution given above on this thread may work, I havenโt tried it and there is another thread discussing the same: Similar Thread_1
Signing off from this thread!
โ04-20-2022 08:47 AM
Thatโs why I suggested to do the transformations before the XML Generator. Create the URL link , and just pass it like a variable into the XML Generator.
โ04-20-2022 08:51 AM
URL generation and transformation is actually happening in the parent pipeline and its way before the XML generator (which is in child pipeline)
โ04-20-2022 08:36 AM
How do you type this in a reply? I couldnโt post anything with <a href="> as you can see Iโm missing opening quotes.
โ04-20-2022 08:40 AM
With the help of the โPreformatted textโ option.
Wrap the text in backticks
โ04-20-2022 08:42 AM
<a href = "Does this work">Yes,it works!></a> THANK YOU!