last problem solved. the problem was that when you saved .xml sitemap we got our file in wp-admin folder! so i changed this line:
$xml_output->save( address );
to this:
$xml_output->save( "../" . address );
i don't know why last line saves our file in wp-admin but i told myself i should step one folder back! that's it!