Generate HTML and XML with Rust