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 forking this repo to make Serializer::new_from_writer public and wrote this code:
I am a little confused, because as far as I can tell I basically re-implemented to_string, but in any case I'd appreciate guidance or the ability in stable serde-xml-rs to do this.
Thanks in advance for all of y'all's awesome work.
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 forking this repo to make
Serializer::new_from_writer
public and wrote this code:Somehow, it still produced this output:
I am a little confused, because as far as I can tell I basically re-implemented
to_string
, but in any case I'd appreciate guidance or the ability in stable serde-xml-rs to do this.Thanks in advance for all of y'all's awesome work.