use crate::Attribute;
pub struct Namespace<'a>(Attribute<'a>);
impl<'a> Namespace<'a> {
pub fn new(prefix: &'a str, uri: &'a str) -> Self {
Namespace(Attribute::new(prefix, uri))
}
}
impl std::fmt::Display for Namespace<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "xmlns:{}", self.0.to_string())?;
Ok(())
}
}