quick-xml
quick-xml copied to clipboard
Rust high performance xml reader and writer
I have a data structure with an attribute: ```rust #[derive(Debug, Serialize, Deserialize)] pub struct Foo { #[serde(rename = "@bar")] pub bar: String, } ``` Which (de)serializes to: ```xml ``` For...
I have XML input that contains XML within processing instructions. See the test code below. As far as I can tell, these are well-formed according to the spec at https://www.w3.org/TR/xml11/#sec-pi...
In one of my projects I have to parse and strictly validate XML input coming from other programs and humans, and the latter (understandably) insist on getting decent error messages...
Attempting to deserialize the following snippet to the following struct fails with "missing field `$value`" due to `not_in()` depending on the full name of the tag rather than the local...
Hi there! Thank you for the excellent library. I'm quite stuck and I was hoping someone might be able to help me. I'm trying to switch to `quick-xml` from `serde-xml-rs`...
I'm trying to serialize/deserialize some data that an API responds with. This is what the XML from the API looks like: ```xml username_here datetime_here ``` And this is my code:...
I've got some XML that looks like this: ```xml 5 ``` Which I want to parse with something like: ```rust #[derive(Deserialize)] #[serde(rename_all = "snake_case")] enum Choice { One, Two, Three...
A simple example here. ```rust use serde::Serialize; use quick_xml::se::to_string; #[derive(Serialize)] struct Foo { #[serde(rename = "@foo")] foo: Option } #[test] fn test_foo() { let foo = Foo { foo: None...
The draft of the new parser implementation, based on approach used in quickest XML parser implementation according to our tests -- [maybe_xml](https://github.com/bluk/maybe_xml). This PR is created to get early feedback....
Addresses https://github.com/tafia/quick-xml/issues/624#issuecomment-1807077043