Skip to content

Disable trim_text in Deserializer from_reader #285

Open
@woodworker

Description

@woodworker

Is there a easy way to set trim_text to false in the Deserializer::from_str when i use quick_xml::de::from_str?

quick-xml/src/de/mod.rs

Lines 160 to 167 in a4be484

pub fn from_reader(reader: R) -> Self {
let mut reader = Reader::from_reader(reader);
reader
.expand_empty_elements(true)
.check_end_names(true)
.trim_text(true);
Self::new(reader)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions