Skip to main content

register_document_namespace

Function register_document_namespace 

Source
pub fn register_document_namespace(docprefix: &str, namespace_opt: Option<&str>)
Expand description

Bind an OUTPUT-document prefix to a namespace URI, on the current model.

The document half of the two mappings described on Model::register_namespace — these are the prefixes that appear in the generated XML, and the one place #default is meaningful (for unprefixed elements; never for attributes). Passing None unbinds the prefix.