Categories | Question details Back To List | ||||||||
i have problem with loadXML() and ó when i load data from xml with utf-8 encoding and my "ó" letter it's encode to ó in Firefox 3.0 is ok but when i use IE 7 i have an error : "load XML incorrect XML" I test witout ó everything is all right thx Answer posted by Support on Dec 08, 2008 05:59 Please try to wrap output in CDATA <cell><![CDATA[ any content here ]]></cell> If it still cause problems - please provide a sample of problematic xml. Answer posted by bebak tomasz on Dec 08, 2008 06:16 problem is with line like that (in my dynamically create xml file): ......... <item id="relation.RelMainTable" text="#{messages['RelMain.menu']}" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> ......... when i load from my menu from url "menu_dhx.jsf" (this file create my xml): menu.loadXML("menu_dhx.jsf?etc="+ new Date().getTime()); i have this error its difficult use <![CDATA[ i think only under IE 7 Answer posted by bebak tomasz on Dec 08, 2008 06:36 this piece of code #{messages['RelMain.menu']} makes my "ó" encode to ó Answer posted by bebak tomasz on Dec 08, 2008 06:44 this xnl fragnebt is after evaluate: <item id="relation.menu" text="Relacje"> <item id="relation.BankAccountTable" text="Konta Bankowe" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> <item id="relation.EmployeeTable" text="Pracownicy" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> <item id="relation.RelMainTable" text="Główne relacje" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> <item id="relation.RelSubProTable" text="Relacje podmiot-projekt" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> <item id="relation.RelSubSubTable" text="Relacje podmiot-podmiot" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> <item id="relation.RelSubSysTable" text="Relacje podmiot-system" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> <item id="relation.SystemUserTable" text="Użytkownicy systemu" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> </item> Answer posted by Support on Dec 08, 2008 08:28 >>its difficult use <![CDATA[ i think If you are using PRO version of tree it can be done as <item id="relation.RelMainTable" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"> <itemtext><![CDATA[#{messages['RelMain.menu']}]]></itemtext> </item> >>this xnl fragnebt is after evaluate: IE doesn't recognize ó as valid XML entity. To resolve issue, you can use CDATA section as mentioned above, or change your code to produce XML as <item id="relation.RelMainTable" text="Gł&oacute;wne relacje" img="domain/PDObject16.png" imgdis="domain/PDObject16.png"></item> such combination will be correctly parsed and correctly rendered in HTML Attachments (1)
Answer posted by bebak tomasz on Dec 08, 2008 10:48 thx very much |