file_put_contents() is faster than asXML(); creates cleaner XML