quick-xml
quick-xml copied to clipboard
Rust high performance xml reader and writer
Currently we have many examples of XML reading, and nothing for XML writing.
I've been getting an unusual `EndEventMismatch` error when reading from a TCP (TLS) socket in a loop. The error message is `"Expecting
Deserialization of a list in an attribute value does not treat the tab character as a separator, despite [the documentation](https://docs.rs/quick-xml/0.31.0/quick_xml/de/index.html#mapping-xml-to-rust-types) stating that it should. ```rust use quick_xml::de::Deserializer; use serde::Deserialize; #[derive(Debug,...
When looking at the code I noticed that there was a break in `#[inline]` propagation on functions. Given that `#[inline]` is non-transitive, cross crate inline optimization can be very easily...
```rust use pretty_assertions::assert_eq; use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize)] struct Root { #[serde(rename = "@value")] value: String, } const xml: &str = r#""#; #[test] fn test_attribute_value_normalization() { let read: Root...
Use memchr iterators to search for characters to escape. In some (most) cases, we need to combine multiple memchr searches (since memchr allows searching for up to 3 chars at...
I have an element like this: ```xml 😃 ``` If those characters are literally interpreted, they should be the byte sequence `f0 9f 98 83`, which should be U+1F603, or...
Reference https://github.com/tafia/quick-xml/pull/520#issuecomment-1440510793. So I did the feature in ONE way possible because there are many different ways this can be implemented. I choose to modify the current functions for this...
Attempt to implement #629 . * I did not find any unit tests apart from the doctest, let me know if I missed something * I tried to make the...
The default behaviour of ignoring XML elements that are not declared is very useful when dealing with XML that follows an extensible schema. However, including a `rename="$value"` field changes this...