pub fn write_attr<W: Write, T: XmlWrite>( element: &Option<T>, writer: &mut XmlWriter<W>, ) -> Result<(), XmlError>