Struct treexml::Document[][src]

pub struct Document {
    pub version: XmlVersion,
    pub encoding: String,
    pub root: Option<Element>,
}

An XML document

Fields

Version of the XML document

Encoding of the XML document

Root tag of the XML document

Methods

impl Document
[src]

Create a new Document with default values

Create a new Document with an Element or ElementBuilder at its root.

Parse data from a reader to construct an XML document

Failures

Passes any errors that the xml-rs library returns up the stack

Writes a document to w

Trait Implementations

impl Debug for Document
[src]

Formats the value using the given formatter. Read more

impl Clone for Document
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Document
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Document
[src]

impl Default for Document
[src]

Returns the "default value" for a type. Read more

impl Display for Document
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Document

impl Sync for Document