');
$nextnode=findNode($currNode,'objects-list')->firstChild;
while ($nextnode)
{ if ($nextnode->nodeName=='column')
{
fwrite($fh, '| '.$row[$nextnode->getAttribute("n")].' | ');
}
$nextnode = $nextnode->nextSibling;
}
fwrite($fh, '
'."\n");
}
$res->closeCursor(); //Мож поможет избавиться от ошибки: "Cannot execute queries while other unbuffered queries are active."
fwrite($fh, '