Hallo! My problem is that i try to start a simple template with just an "Root Template". The code is like:
1<OpenDRIVE>2 <header>revMajor="1" revMinor="1" name="" version="1.00" 3 date="Fri Jul 27 14:52:00 2018" 4 north="0.0000000000000000e+00" south="0.0000000000000000e+00" 5 east="0.0000000000000000e+00" west="0.0000000000000000e+00"</header>6{7 if (fme:has-attribute("id"))8 then9 <road>10 r="road works"11 </road>12}13</OpenDRIVE>
The console give me that output:
1XMLTemplater(XMLTemplaterFactory): The following error occurred near line 7, column 32 of the query:2XMLTemplater(XMLTemplaterFactory): invalid expression: syntax error, unexpected ExprSingle (missing comma "," between expressions?)34XMLTemplater(XMLTemplaterFactory): An error occurred while parsing the ROOT template56XMLTemplater(XMLTemplaterFactory): A fatal error has occurred. Check the logfile above for details78A fatal error has occurred. Check the logfile above for details
I have no idea why my if sentence doesn't work, i do completely the same as in this question described:
https://knowledge.safe.com/questions/40027/convert-json-to-xml.html
I hope anyone can help me pls.