# | Line 6 | Line 6 | |
---|---|---|
6 | ||
7 | #include <cxx/standard.hh> | |
8 | ||
9 | + | #include <api/process.hpp> |
10 | #include <app/simple.hpp> | |
11 | + | #include <xml/textwriter.hpp> |
12 | + | |
13 | + | #include "GzipWriter.hpp" |
14 | ||
15 | int Main(const app::Options &options) | |
16 | { | |
17 | + | _S<GzipWriter> gzip(_B("sitemap.gz")); |
18 | + | _S<xml::TextWriter> writer(gzip); |
19 | + | xml::ScopeElement urlset(writer, _B("urlset")); |
20 | + | |
21 | + | writer.SetAttribute(_B("xmlns"), _B("http://www.google.com/schemas/sitemap/0.84")); |
22 | + | |
23 | return 0; | |
24 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |