diff --git a/Cargo.toml b/Cargo.toml index a5d6919..06bec9f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,11 +13,11 @@ keywords = ["geo", "geospatial", "kml"] exclude = [".github/*"] [dependencies] -quick-xml = "0.31" +quick-xml = "0.37.1" num-traits = "0.2" thiserror = "1.0" geo-types = { version = ">=0.6, <0.8", optional = true } -zip = { version = "0.6", optional = true, default-features = false, features = [ +zip = { version = "2.2", optional = true, default-features = false, features = [ "bzip2", "deflate", "time", diff --git a/src/reader.rs b/src/reader.rs index a9124c1..c1e19cc 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -85,8 +85,8 @@ where } fn from_xml_reader(mut reader: quick_xml::Reader) -> KmlReader { - reader.trim_text(true); - reader.expand_empty_elements(true); + let config = reader.config_mut(); + config.trim_text(true); KmlReader { reader, buf: Vec::new(),