Skip to content

Unable to access the xmlns values #92

@estk

Description

@estk

I'm writing a code generator for xml-schemas and I'm in the process of trying to sort out the namespace that an element or type may be associated with. Unfortunately without access to the xml namespace information from an xml document I'm unable to do this. I could implement a custom deserializer, but I figured it would be better to fold the work in here.

I was thinking a nice way to do this would be with a Serde field attribute, maybe something like the following.

use xml::namespace::NamespaceStack;
...
    #[serde(rename = "$namespaces")]
    nss: HashMap<String, NamespaceStack>

We could even re-export a new-type wrapper around the hash map.

The code generator is a major work in process, but its here if you're curious.

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