serde-xml-rs icon indicating copy to clipboard operation
serde-xml-rs copied to clipboard

xml-rs based deserializer for Serde (compatible with 1.0+)

Results 105 serde-xml-rs issues
Sort by recently updated
recently updated
newest added

I ran into this head-scratcher today, history: 1. upgraded software that used serde-xml-rs v0.3.0 to use v0.6.0. 2. It compiled fine but parsing broke. 3. found out that parsing still...

Someone should also specify in the README that this can only parse the most basic, well-nested XML files. Edit: this looks like the best alternative: https://docs.rs/quick-xml/latest/quick_xml/de/

I am processing the following file. https://github.com/KhronosGroup/OpenGL-Registry/blob/main/xml/gl.xml It has lines such as this: ``` GLVULKANPROCNV glGetVkProcAddrNV void glWaitVkSemaphoreNV ``` So I would like to sometimes extract the string under proto,...

👋 Hi everyone! I'm trying to serialize a list of categories like following ```rust #[derive(Debug, serde::Serialize)] #[serde(rename = "categories")] pub struct Categories { #[serde(rename = "$value")] inner: [Category; 2], }...

The following extremely simple code reproduces the issue. ```rs enum EnumOne { A(EnumTwo), } enum EnumTwo { Z(StructOne), } struct StructOne { } let obj = EnumOne::A( EnumTwo::Z ( StructOne...

```rust use serde::{Deserialize, Serialize}; use serde_xml_rs::{from_str, to_string}; #[derive(Debug, Serialize, Deserialize, PartialEq)] struct Item { name: String, source: String, } fn main() { let src = r#"BananaStore"#; let should_be = Item...

I have a use case where I would like to serialize structs in a specific xml-like protocol that does not include any document declarations. I have taken the step of...

Help me to solve puzzle. I have xml from sysPass: ```xml sysPass 3211.22070201 1669620743 admin Admins b5141af49246795c42e74012c19dab36974708be APP BirchStore Shop SSO Ivan Petrov 1 1 i.petrov https://app.internal.company.ru:5555/app/ [email protected] v23t8nv2u394tyd Abramova...

Hi, I have to deserialize some xml. I was wondering if there is something similar to ["from_slice" function in serde_json](https://docs.rs/serde_json/latest/serde_json/fn.from_slice.html)? I always find references to serde_bytes, but not one simple...