I am using velocity template for generating a XML file. The xml file contains some query so I am using CDATA Tag. The query is generated dynamically. Following example I am using a static query
My code goes
#set( $query= "Select emp_Id from employee231" )
But when the template and data are merged using Velocity, the XML file generates as
Select emp_Id from employee231
Can anyone please help me. I want to generate my XML file as
<![CDATA[Select emp_Id from employee231]]>
ThankU in advance..
It seems to generate correctly for me, when I drop it into an existing template. What else is in your template? And which version of JHS are you using?