Problem with Attach Footer with <div> in TreeGrid

Hi,



I hope that you can help me.



I build a treegrid by xml as follows:





xml.append(initafterinit);

String callAttachFooter = initcall1 + “attachFooter” + initcall2;

String txtFooter = “Resultado de ingresos - gastos por periodo:”;



String cadparamsfooter = txtFooter + “,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan”;

for(z = 0; z < nperiodos; z++)

{                

    cadparamsfooter += “,

”;                 

}



String attachFooter = callAttachFooter + initparam + cadparamsfooter + endparam + endcall;

xml.append(attachFooter);

            

xml.append(endafterinit);





Xml file looks as follows:













Resultado de ingresos - gastos por periodo:,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,<div



id=‘p0’>,
,
,
,
,<div



id=‘p5’>,
,
,
,
,<div



id=‘p10’>,
,
,
,




,
,
,
,
,
<



/div>,
,
,
,
            









But it doesn’t work, why?



Thanks in advance.

XML parser treats div as XML tags in case of above code, the correct XML must look as

<![CDATA[

Resultado de ingresos - gastos por periodo:,#cspan,#cspan,#cspan,#cspan,#cspan,#cspan,

,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,



]]>



Thank you very much.

My problem has been solved with your answer.

See you.