I just wrote a custom class to handle this...it basically takes any mysql query and outputs xml...this is the jist of it:
function xmlOut($sql){
$xml = "<recordSet>\n";
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)){
$xml .= "<record>\n";
while(list($key,$val) = each($row)){
$xml .= "<field name='".$key."'>" . rawurlencode($val) . "</field>\n";
}
$xml .= "</record>\n";
}
$xml .= "</recordSet>";
return $xml;
}
I just wrote this off of the top of my head right now, so there's no guarantee it works as is...
With this function, exporting a whole table would entail passing a "select *" query to the function.