Cargo.toml ๐
@@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>"]
[dependencies]
-minidom = "0.1.1"
+minidom = "0.2.0"
jid = "0.2.0"
base64 = "0.4.1"
digest = "0.5.0"
Emmanuel Gil Peyrot created
Cargo.toml | 2 +-
src/disco.rs | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
@@ -4,7 +4,7 @@ version = "0.1.0"
authors = ["Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>"]
[dependencies]
-minidom = "0.1.1"
+minidom = "0.2.0"
jid = "0.2.0"
base64 = "0.4.1"
digest = "0.5.0"
@@ -60,8 +60,7 @@ pub fn parse_disco(root: &Element) -> Result<Disco, Error> {
return Err(Error::ParseError("Identity must have a non-empty 'type' attribute."))
}
- // TODO: this must check for the namespace of the attribute, but minidom doesnโt support that yet, see issue #2.
- let xml_lang = child.attr("lang").unwrap_or("");
+ let xml_lang = child.attr("xml:lang").unwrap_or("");
let name = child.attr("name")
.and_then(|name| name.parse().ok());
identities.push(Identity {