codice:
do { 
 
$tagtype=$row_rsRecordset['type'];
$strXML =  $strXML."<type name =\"$tagtype\">\r\n";
do {
$tagname=$row_rsRecordset1['name'];
$strXML = $strXML."<product>\r\n"; 
$strXML = $strXML."<name>$tagname</name>\r\n";

$strXML = $strXML."</product>\r\n";

 } while ($row_rsRecordset1 = mysql_fetch_assoc($rsRecordset1));

$strXML = $strXML."</type>\r\n";

 while ($row_rsRecordset = mysql_fetch_assoc($rsRecordset)); 
$strXML = $strXML."</category>\r\n";
  
// OPEN FILE, WRITE TO FILE, CLOSE FILE, CLOSE RECORDSET 
  $XMLFile = fopen("shop/gallery.xml", "w") or die("can't open file"); 
   
  fwrite($XMLFile, $strXML); 
  fclose($XMLFile); 

mysql_free_result($rsRecordset);
Con un DO -While Annidato cosi non funziona in quanto la variabile $strXML
che scrive fopen va in palla.

Potresti farmi un esempčio?