## features Simple Write Sitemap ## Using ``` [dependencies] sitemap-writer="0.1" ``` # Examples ```rust use sitemap::{SitemapWriter,SitemapUrl,SitemapChangeFreq}; let write = SitemapWriter::make("test.xml", vec![ SitemapUrl{ loc: "https://example.com/".to_string(), lastmod: Some("2021-01-01".to_string()), changefreq: Some(SitemapChangeFreq::ALWAYS), priority: Some(1.0), }, SitemapUrl::new("https://example.com/contact/"), SitemapUrl::new("https://example.com/contact/?test=1"), SitemapUrl::new("https://example.com/contact/?test=<>"), ]); assert!(write.is_ok()) ``` # Output XML ```xml https://example.com/ 2021-01-01 always 1 https://example.com/contact/ https://example.com/contact/?test=1 https://example.com/contact/?test=<> ```