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

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

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

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

Trait Implementations

impl Clone for Node
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Node
[src]

Formats the value using the given formatter. Read more

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 PartialEq for Node
[src]

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

This method tests for !=.

impl Eq for Node
[src]

Auto Trait Implementations

impl !Send for Node

impl !Sync for Node