jqgrid xml generating empty cell -


i'm using code generate xml jqgrid's data:

var grid =  $("#gridtable"); var datafromgrid = grid.jqgrid ('getrowdata'); var xml_string = '<rows>\n' + xmljsonclass.json2xml ({rowtest:datafromgrid}, '\t') +                  '</rows>'; 

when cell inside grid empty inside xml tag "_empty_string" , how can change empty xml tag (like this: <cell1></cell1>) while generating ?

thank's in advance.

the easy way append code following line

xml_string = xml_string.replace(/>__empty_string_<\//g, "><\/"); 

it cut __empty_string_ strings.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -