Skip to main content

register_namespace

Function register_namespace 

Source
pub fn register_namespace(codeprefix: &str, namespace_opt: Option<&str>)
Expand description

Bind a CODE prefix to a namespace URI, on the current model.

The coding half of the two mappings described on Model::register_namespace — the prefixes constructors and bindings write, which must be one-to-one and admit no default namespace. Passing None unbinds the prefix.