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 have an element which can take either of the following forms: ```rust some text ``` It can also be missing entirely. What is the proper way to handle this...

enhancement

From the vulkan spec: ``` #include "vk_platform.h" WSI extensions #include "vulkan.h" #include <X11/Xlib.h> #include <X11/extensions/Xrandr.h> #include <android/native_window.h> #include <mir_toolkit/client_types.h> #include <wayland-client.h> #include <windows.h> #include <xcb/xcb.h> ``` I have no idea...

following code: #[macro_use] extern crate serde_derive; extern crate serde_xml_rs; //extern crate serde; use serde_xml_rs::*; #[derive(Debug, Deserialize, Serialize) ] struct Item { pub name: String, pub source: String } #[derive(Debug, Deserialize,...

Hi all, I have the following (minimized) program: ```rust #[macro_use] extern crate serde_derive; extern crate serde; extern crate serde_xml_rs as serde_xml; #[derive(Deserialize, Debug)] pub struct ListBucketResult { #[serde(rename = "IsTruncated")]...

enhancement

https://github.com/RReverser/serde-xml-rs/blob/d824bca2f193d554bfe58d5de211994c7079bf12/src/ser/var.rs#L49 IIUC this can be done by creating a new serializer that is restricted to only "key safe" types instread of returning parent. Then that serilizer throws an error for...

I just encountered an issue when deserializing a newtype struct. You usually use a newtype struct (e.g. `struct Foo(Bar)`) to put something inside a tag, however `serde_xml_rs` seems to want...

bug

When I initially wrote the `Serializer` I was just using `write!()` to write the XML as a string to an internal `io::Writer`. Ideally we should be using the `xml-rs` library...

refactoring

It seems when using the [internally tagged enums](https://serde.rs/enum-representations.html), the deserializer gets somewhat confused. If I have this code: ```rust #[derive(Deserialize)] #[serde(tag = "z")] enum Z { A { b: String...

bug

Todo - serde version 1.0 - code example should work with current syntax - add serializer

I merged #32 without realizing the implications. Now we can parse ``` ``` as a sequence, even though it is malformed XML. On the other hand, `serde-json` has a way...

bug
enhancement