Skip to content

Cannot serialize sequence of tags #76

@ebkalderon

Description

@ebkalderon

I was using serde-xml-rs with the vkxml crate in one of my projects, and although the structures it exposes implement Serialize, the serialization fails due to serialize_seq() not being supported in serde-xml-rs, as described in this code block.

In this library, a valid vk_new.xml file is represented an ordered sequence of RegistryElement tags (see the lib.rs). Therefore, it intuitively appears straightforward to iterate over each element in the sequence and serialize them in turn. However, the comment left in the serialize_seq() method leads me to believe that this task isn't as simple as it seems.

Would anyone please elaborate on why this behavior isn't supported?

EDIT: I see that #36 has been open for about a year. What's the status?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions