[][src]Struct libxml::tree::node::Node

pub struct Node(_);

An xml node

Methods

impl Node
[src]

Create a new node, bound to a given document.

Immutably borrows the underlying libxml2 xmlNodePtr pointer

Mutably borrows the underlying libxml2 xmlNodePtr pointer Also protects against mutability conflicts at runtime.

Create a new text node, bound to a given document

Create a mock node, used for a placeholder argument

Create a mock node, used for a placeholder argument

libc::c_void isn't hashable and cannot be made hashable

Returns the next sibling if it exists

Returns the previous sibling if it exists

Returns the first child if it exists

Returns the first element child if it exists

Returns the last child if it exists

Returns all child nodes of the given node as a vector

Returns all child elements of the given node as a vector

Returns the parent if it exists

Get the node type

Add a previous sibling

Add a next sibling

Returns true iff it is a text node

Checks if the given node is an Element

Checks if the underlying libxml2 pointer is NULL

Returns the name of the node (empty string if name pointer is NULL)

Sets the name of this Node

Returns the content of the node (assumes UTF-8 XML document)

Sets the text content of this Node

Returns the value of property name

Returns the value of property name in namespace ns

Return an attribute as a Node struct of type AttributeNode

Sets the value of property name to value

Sets a namespaced attribute

Removes the property of given name

Alias for get_property

Alias for get_property_ns

Alias for get_property_node

Alias for set_property

Alias for set_property_ns

Alias for remove_property

Get a copy of the attributes of this node

Alias for get_properties

Gets the active namespace associated of this node

Gets a list of namespaces associated with this node

Get a list of namespaces declared with this node

Sets a Namespace for the node

Looks up the prefix of a namespace from its URI, basedo around a given Node

Looks up the uri of a namespace from its prefix, basedo around a given Node

Removes the namespaces of this Node and it's children!

Get a set of class names from this node's attributes

Creates a new Node as child to the self Node

Creates a new Node as child to the self Node

Adds a new text child, to this Node

Append text to this Node

Unbinds the Node from its siblings and Parent, but not from the Document it belongs to. If the node is not inserted into the DOM afterwards, it will be lost after the program terminates. From a low level view, the unbound node is stripped from the context it is and inserted into a (hidden) document-fragment.

Alias for unlink_node

Alias for unlink_node

Alias for unlink_node

Checks if node is marked as unlinked

find nodes via xpath, at a specified node or the document root

Trait Implementations

impl Clone for Node
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Node
[src]

impl PartialEq<Node> for Node
[src]

Two nodes are considered equal, if they point to the same xmlNode.

This method tests for !=.

impl Hash for Node
[src]

Generates a hash value from the node_ptr value.

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Node
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Node

impl !Sync for Node

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more