Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sabri on Apr 29, 2009 00:42
open dhtmlx forum
dhtmlxFolders cddata

Hello,

in my xml content i have a folders and files that have a (%,é,&) chars ,Can i add a CDData section in the xml description of my dhtmlxFolders object,


Best regards
sabri,
Answer posted by Alex (support) on Apr 29, 2009 07:49

Hello, 

Yes, you can use CDATA inside tags in the xml.

Answer posted by Sabri on Apr 29, 2009 09:03
So,
can i put

"<item name=\"CDATA["+theRoots[i].toString()+"]\" type=\"dir\"/>"


but i have a result like in attachment :-(

Attachments (1)
Answer posted by Alex (support) on Apr 29, 2009 09:30

Hello, 

CDATA tag is placed as child node of some other tag for example:

<some ....><![CDATA[.....]]></some>

If & is part of tag attribute, it must be escaped: & -> &amp;

Answer posted by Sabri on Apr 30, 2009 02:23
Hello,
The problem is solved
thank's a lot of

Sabri,