pub trait XmlSerialize {
// Required methods
fn serialize(
&self,
ns: Option<Namespace<'_>>,
tag: Option<&str>,
namespaces: &HashMap<Namespace<'_>, &str>,
writer: &mut Writer<&mut Vec<u8>>,
) -> Result<()>;
fn attributes<'a>(&self) -> Option<Vec<Attribute<'a>>>;
}