Design for namespaces #316
Labels
enhancement
namespaces
Issues related to namespaces support
serde
Issues related to mapping from Rust types to XML
Also the namespace thing is probably not a final fix. Although I don't know XML really well I think we would need some mapping from namespace urls. Let me give an example (CalDAV):
should as far as I understand it should be equivalent to:
The way yaserde implements this is you specify a mapping of namespace-shorthands to namespace urls:
and then can use these shorthands. A potentially easier but maybe also annoying way would be to directly use the url maybe like:
#[serde(rename = "$unflatten=urn:ietf:params:xml:ns:caldav href")]
where we should choose delimiters as invalid characters of the namespace url. But then you would need to store all
xmlns:
attributes on a stack or so to know which shorthand this belongs to.Originally posted by @mohe2015 in #306 (comment)
The text was updated successfully, but these errors were encountered: