Struct libxml::tree::Document [] [src]

pub struct Document {
    pub doc_ptr: *mut c_void,
}

A libxml2 Document

Fields

libxml's DocumentPtr

Methods

impl Document
[src]

[src]

Creates a new empty libxml2 document

[src]

Creates a new Document from an existing libxml2 pointer

[src]

Write document to filename

[src]

Get the root element of the document

[src]

Sets the root element of the document

[src]

Import a Node from another Document

[src]

Serializes the Document

[src]

Serializes a Node owned by this `Document

[src]

Creates a node for an XML processing instruction

[src]

Cast the document as a libxml Node

Trait Implementations

impl Debug for Document
[src]

[src]

Formats the value using the given formatter.

impl Drop for Document
[src]

[src]

Free document when it goes out of scope

impl Clone for Document
[src]

[src]

Returns a copy of the value. Read more

[src]

Performs copy-assignment from source. Read more