einfach-xml-builder 0.1.0

A lightweight and intuitive library for generating XML documents in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
impl fmt::Display for Attribute<'_> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        if let Some(namespace) = self.namespace {
            write!(f, "{}:", namespace.prefix)?;
        };

        write!(f, "{}", self.name)?;
        
        write!(f, "=\"{}\"", self.value)?;
        Ok(())
    }
}