$include_postValue = $domtree->createTextNode('0');
        $include_post->appendChild($include_postValue);
        $phone1Value = $domtree->createTextNode('01-12345678');
        $phone1->appendChild($phone1Value);
        $phone1_type_nameValue = $domtree->createTextNode('');
        $phone1_type_name->appendChild($phone1_type_nameValue);
        $phone2Value = $domtree->createTextNode('');
        $phone2->appendChild($phone2Value);
        $phone2_type_nameValue = $domtree->createTextNode('');
        $phone2_type_name->appendChild($phone2_type_nameValue);
        $season_end_dateValue = $domtree->createTextNode('');
        $season_end_date->appendChild($season_end_dateValue);
        $season_start_dateValue = $domtree->createTextNode('');
        $season_start_date->appendChild($season_start_dateValue);
        $shippingValue = $domtree->createTextNode('0');
        $shipping->appendChild($shippingValue);
        $tax_area2_nameValue = $domtree->createTextNode('');
        $tax_area2_name->appendChild($tax_area2_nameValue);
        $tax_area_nameValue = $domtree->createTextNode('');
        $tax_area_name->appendChild($tax_area_nameValue);
        $zipValue = $domtree->createTextNode('');
        $zip->appendChild($zipValue);
        /*Customer Address Attributes Ends here*/
        $count++;
    }
    // save tree to file
    $domString = $domtree->save("customers/customerfile_" . getDateForFileName() . ".xml");
    logMessage($count . " customers added to the file");
} else {
    logMessage('No new customers');
}
            $udf3_value->appendChild($udf3_valueValue);
            $udf4_value = $domtree->createAttribute('udf4_value');
            $invnBaseItem->appendChild($udf4_value);
            $udf4_valueValue = $domtree->createTextNode('');
            $udf4_value->appendChild($udf4_valueValue);
            $udf5_value = $domtree->createAttribute('udf5_value');
            $invnBaseItem->appendChild($udf5_value);
            $udf5_valueValue = $domtree->createTextNode('');
            $udf5_value->appendChild($udf5_valueValue);
            $udf6_value = $domtree->createAttribute('udf6_value');
            $invnBaseItem->appendChild($udf6_value);
            $udf6_valueValue = $domtree->createTextNode('');
            $udf6_value->appendChild($udf6_valueValue);
            $upc = $domtree->createAttribute('upc');
            $invnBaseItem->appendChild($upc);
            $upcValue = $domtree->createTextNode($item['product_id']);
            $upc->appendChild($upcValue);
            $use_qty_decimals = $domtree->createAttribute('use_qty_decimals');
            $invnBaseItem->appendChild($use_qty_decimals);
            $use_qty_decimalsValue = $domtree->createTextNode('0');
            $use_qty_decimals->appendChild($use_qty_decimalsValue);
            $vend_code = $domtree->createAttribute('vend_code');
            $invnBaseItem->appendChild($vend_code);
            $vend_codeValue = $domtree->createTextNode('DISTRI');
            $vend_code->appendChild($vend_codeValue);
        }
    }
    // save tree to file
    $domString = $domtree->save("salesorders/saleorderfile_" . getDateForFileName() . ".xml");
    logMessage($count . " sales order added to the file");
}