printDGX($dgx3);
echo "dgx3 setColumns: Overwrite \n";
$dgx3->setColumns($columns2);
printDGX($dgx3);
$dgx4 = new DataGridXML();
echo "dgx4 setRows: \n";
$dgx4->setColumns($columns1);
$dgx4->setRows($rows1);
printDGX($dgx4);
echo "dgx4 setRows: Overwrite \n";
$dgx4->setRows($rows2);
printDGX($dgx4);
$dgx5 = new DataGridXML();
echo "dgx5 addRows to empty rows: \n";
$dgx5->setColumns($columns1);
$dgx5->addRows($rows1);
printDGX($dgx5);
echo "dgx5 addRows to filled rows: \n";
$dgx5->addRows($rows1);
printDGX($dgx5);
echo "dgx5 addRow (single) to filled rows: \n";
$dgx5->addRow(array("Hackfresse", "Hans", "Dobi"));
printDGX($dgx5);
echo "dgx5 emptyRows: \n";
$dgx5->emptyRows();
printDGX($dgx5);
$dgx6 = new DataGridXML();
echo "dgx6 getXML Exception Test \n";
try {
    $dgx6->getXML();
    echo "no exception";