Structure_DataGrid

From: Date: Mon, 12 Sep 2005 02:01:01 +0000
Subject: Structure_DataGrid
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20911@lists.php.net to get a copy of this message
Hi, I have just started using Structure_DataGrid, mostly with DB_DataObjects to out put XML documents but have run into a few issues that I'm sure are relatively trivial to sort, though I have had some issues. The first issue is the treatment of null values in the record set. At present tio seems that if the result contains records in which some columns are null, the XML output will contain empty tags (<columnName></columnName>). This causes issues for applications that want to use the result as it creates badly formed XML - the tags should be ommitted rather than have an empty tag as above. What is the best way to make this happen? Should I use Structure_DataGrid_Column and define an output format function? -- Stay happy, stay well ... get involved Barry Steele www.hpfm.com.au mob: +61 413 947980 off: +61 2 99816329 fax: +61 2 9981 7806

« previous php.pear.general (#20911) next »