Struct sxd_document::dom::Document
[−]
[src]
pub struct Document<'d> { /* fields omitted */ }An XML document
Methods
impl<'d> Document<'d>[src]
fn root(self) -> Root<'d>
fn create_element<'n, N>(self, name: N) -> Element<'d> where
N: Into<QName<'n>>,
N: Into<QName<'n>>,
fn create_text(self, text: &str) -> Text<'d>
fn create_comment(self, text: &str) -> Comment<'d>
fn create_processing_instruction(
self,
target: &str,
value: Option<&str>
) -> ProcessingInstruction<'d>
self,
target: &str,
value: Option<&str>
) -> ProcessingInstruction<'d>
Trait Implementations
impl<'d> Copy for Document<'d>[src]
impl<'d> Clone for Document<'d>[src]
fn clone(&self) -> Document<'d>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'d> PartialEq for Document<'d>[src]
fn eq(&self, other: &Document<'d>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.