Hi, I'm building the XML in the VTL. At some point I retrieve the value of an element and set its text as $elem.setText( $sometext )
#foreach($elem in $rootelem.getChildren()) #set ($elemname = $elem.getName()) #set( $sometext = $userprops.get($elemname) ) $elem.setText( $sometext ) #end In the output I get each element printed as --- "[Element: <serviceName/>]" where serviceName is the the element name. This happens for all the elements in the for loop. I want to disable this output on the console/file which comes from "setText" I tried : VelocityEngine ve = new VelocityEngine(); ve.setProperty(VelocityEngine.VM_MESSAGES_ON, "false"); But still the elements are printed which is not desired. Also I get a lot of new lines in the output which I want to disable. Any pointers? -- Thanks & Regards, Anagha