Codice PHP:
<?php
include("../../inc/config.php");
$limite = "10";
header("Content-type: text/xml; charset=utf-8");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
echo "<Company>";
echo "<Name>Nome azienda</Name>";
echo "<Address>Indirizzo azienda</Address>";
echo "<Postcode>cap</Postcode>";
echo " <City>citta</City>";
echo "<Province>provincia</Province>";
echo "<Country>Italia</Country>";
echo "<FiscalCode>partita iva</FiscalCode>";
echo "<VatCode>partita iva</VatCode>";
echo "<Tel>tel</Tel>";
echo "<Fax>fax</Fax>";
echo "<Email>mail</Email>";
echo "<HomePage>sito</HomePage>";
echo "</Company>";
echo " <Documents>";
$query = @mysql_query("SELECT * FROM preventivi_clienti ORDER BY id DESC LIMIT 0," . $limite . "");
while($result = @mysql_fetch_array($query))
{
$nome_db = $result['nome'];
$nome_db = mb_convert_encoding(htmlspecialchars($nome_db , ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$cognome_db = $result['cognome'];
$cognome_db= mb_convert_encoding(htmlspecialchars($cognome_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$indirizzo_db = $result['indirizzo'];
$indirizzo_db = mb_convert_encoding(htmlspecialchars($indirizzo_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$cap_db = $result['cap'];
$cap_db = mb_convert_encoding(htmlspecialchars($cap_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$citta_db = $result['citta'];
$citta_db = mb_convert_encoding(htmlspecialchars($citta_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$stato_db = $result['stato'];
$stato_db = mb_convert_encoding(htmlspecialchars($stato_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$telefono_db = $result['telefono'];
$telefono_db = mb_convert_encoding(htmlspecialchars($telefono_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$email_db = $result['email'];
$email_db = mb_convert_encoding(htmlspecialchars($email_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$data_db = $result['data'];
$data_db = mb_convert_encoding(htmlspecialchars($data_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
$note_db = $result['note'];
$note_db = mb_convert_encoding(htmlspecialchars($note_db, ENT_NOQUOTES, 'Windows-1252'), 'UTF-8', 'Windows-1252');
?>
<Document>
<DocumentType>C</DocumentType>
<CustomerCode><?php echo $result[id]; ?></CustomerCode>
<CustomerName><?php echo "$nome_db $cognome_db"; ?></CustomerName>
<CustomerAddress><?php echo "$indirizzo_db"; ?></CustomerAddress>
<CustomerPostcode><?php echo "$cap_db"; ?></CustomerPostcode>
<CustomerCity><?php echo "$citta_db"; ?></CustomerCity>
<CustomerProvince></CustomerProvince>
<CustomerCountry><?php echo "$stato_db"; ?></CustomerCountry>
<CustomerTel><?php echo "$telefono_db"; ?></CustomerTel>
<CustomerEmail><?php echo "$email_db"; ?></CustomerEmail>
<Date><?php echo "$data_db"; ?></Date>
<Number></Number>
<Total></Total>
<PaymentName>Bonifico bancario</PaymentName>
<PaymentBank>BANCA: UNICREDITBANCA AG. 884 GARIBALDI TRIESTE Codice IBAN: IT 83 Y 02008 02204 0000 15662502</PaymentBank>
<CustomField1><?php echo "$note_db"; ?></CustomField1>
<InternalComment>Nessun Acconto</InternalComment>
<Row>
<Code>0043</Code>
<Description>Appendiabiti su ruote. In robusto metallo verniciato dotato di griglia portascarpe in filo metallico.</Description>
<Qty>1</Qty>
<Um>pz</Um>
<Price>162</Price>
<Discounts>5%</Discounts>
<VatCode>20</VatCode>
</Row>
<Row>
<Code>0039</Code>
<Description>Cestini Gettacarta - Pareti in acciaio laminato nero o acciaio</Description>
<Qty>3</Qty>
<Um>pz</Um>
<Price>16</Price>
<Discounts>5%</Discounts>
<VatCode>20</VatCode>
</Row>
</Document>
<?
}
?>
</Documents>
</EasyfattDocuments>
Mi da questo errore