Struct libxml::tree::Namespace [−][src]
pub struct Namespace { /* fields omitted */ }
An xml namespace
Methods
impl Namespace
[src]
impl Namespace
pub fn new(
prefix: &str,
href: &str,
node: &mut Node
) -> Result<Self, Box<Error>>
[src]
pub fn new(
prefix: &str,
href: &str,
node: &mut Node
) -> Result<Self, Box<Error>>
Creates a new namespace
pub fn ns_ptr(&self) -> xmlNsPtr
[src]
pub fn ns_ptr(&self) -> xmlNsPtr
Immutably borrows the underlying libxml2 xmlNsPtr
pointer
pub fn ns_ptr_mut(&mut self) -> xmlNsPtr
[src]
pub fn ns_ptr_mut(&mut self) -> xmlNsPtr
Mutably borrows the underlying libxml2 xmlNsPtr
pointer
pub fn get_prefix(&self) -> String
[src]
pub fn get_prefix(&self) -> String
The namespace prefix
pub fn get_href(&self) -> String
[src]
pub fn get_href(&self) -> String
The namespace href
pub fn free(&mut self)
[src]
pub fn free(&mut self)
Explicit free method, until (if?) we implement automatic+safe free-on-drop