xml-builder 0.6.0

Easy and highly-configurable XML builder/writer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Enum representing all currently available XML versions.
pub enum XMLVersion {
    /// XML version 1.0. First definition in 1998.
    XML1_0,

    /// XML version 1.1. First definition in 2004.
    XML1_1,
}

impl std::fmt::Display for XMLVersion {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            Self::XML1_0 => write!(f, "1.0"),
            Self::XML1_1 => write!(f, "1.1"),
        }
    }
}