Categories | Question details Back To List | ||
XML contents inside a cell I have contents inside a cell that include XML tags. I am using CDATA to enclose it, but when it displays in the grid, all XML tags inside the cell are removed. XML being loaded: <rows pos="0" total_count="1"> <row id="0"> <cell>1</cell> <cell>1</cell> <cell>10277</cell> <cell>JL-5500-N0/JL-5500</cell> <cell>Failed</cell> <cell><![CDATA[ [Adapter exception: ][Parsing error during logout:][Encountered "<EOF>" at line 0, column 0. Was expecting: <HEADER> ...] ]]></cell> </row> </rows> Output inside 6th cell of the grid: [Adapter exception: ][Parsing error during logout:][Encountered "" at line 0, column 0. Was expecting: ... ] Note that the <EOF> and <HEADER> tags are missing. Any idea how I can solve this issue so the xml tags are displayed within the cell? Thanks. (I am using version 1.6 Pro of dhtmlxGrid). Answer posted by Support on Jul 11, 2008 01:22 There are two ways a) use text based column types ( rotxt,edtxt,txttxt,corotxt ) - such column types will treat incoming data as text ( not as HTML ) and will render in correctly or b) replace special chars with entities <cell><![CDATA[ [Adapter exception: ][Parsing error during logout:][Encountered "<EOF>" at line 0, column 0. Was expecting: <HEADER> ...] ]]></cell> |