diff --git a/parsers/src/presence.rs b/parsers/src/presence.rs index 2ccbb34b..9385f83b 100644 --- a/parsers/src/presence.rs +++ b/parsers/src/presence.rs @@ -154,7 +154,7 @@ pub struct Presence { pub id: Option, /// The type of this presence stanza. - #[xml(attribute(default))] + #[xml(attribute(default, name = "type"))] pub type_: Type, /// The xml:lang of this presence stanza.