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