Function write_output
Source pub fn write_output(xml: &str, output_file: &str) -> SitemapResult<()>
Expand description
Writes the sitemap XML to an output file.
§Arguments
xml - The XML content to write
output_file - The name of the output file
§Errors
This function will return an error if:
- The output file cannot be created
- There are issues writing to the file