Hi,
I'm trying to figure out seemingly easy condition in XML Templator, but something is just not working out.
What I would like to do is write out an XML element only if a feature attribute has a value.
Here's an example:
<OperatingTimeList>
<OpeningTime>{fme:get-attribute("opening_time")}</OpeningTime>
<ClosingTime>{fme:get-attribute("closing_time")}</ClosingTime>
<OperatingTime dayOfweek="" note="we are open">
</OperatingTime>
</OperatingTimeList>
And I would like the "note" to show up in the XML only when there are some values in OpeningTime
I know I should follow if then else logic, but so far I'm only getting XMLTemplater errors.
(FME Desktop 2018)
Thanks,
Linda
Best answer by takashi
View original