-
Notifications
You must be signed in to change notification settings - Fork 98
Closed as not planned
Description
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
Labels
No labels