ArvDomNode

ArvDomNode — Base class for DOM nodes

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ArvDomNode
        ├── ArvDomElement
        ╰── ArvDomDocument

Description

Functions

arv_dom_node_get_node_name ()

const char *
arv_dom_node_get_node_name (ArvDomNode *self);

Gets the node name.

Parameters

self

a ArvDomNode

 

Returns

the node name.


arv_dom_node_get_node_value ()

const char *
arv_dom_node_get_node_value (ArvDomNode *self);

Gets the node value.

Parameters

self

a ArvDomNode

 

Returns

the node value.


arv_dom_node_set_node_value ()

void
arv_dom_node_set_node_value (ArvDomNode *self,
                             const char *new_value);

arv_dom_node_get_node_type ()

ArvDomNodeType
arv_dom_node_get_node_type (ArvDomNode *self);

arv_dom_node_get_parent_node ()

ArvDomNode *
arv_dom_node_get_parent_node (ArvDomNode *self);

Get the parent node of self .

Parameters

self

a ArvDomNode

 

Returns

self parent.

[transfer none]


arv_dom_node_get_child_nodes ()

ArvDomNodeList *
arv_dom_node_get_child_nodes (ArvDomNode *self);

Parameters

self

a ArvDomNode

 

Returns

a ArvDomNodeList, NULL on error.

[transfer none]


arv_dom_node_get_first_child ()

ArvDomNode *
arv_dom_node_get_first_child (ArvDomNode *self);

Parameters

self

a ArvDomNode

 

Returns

self first child.

[transfer none]


arv_dom_node_get_last_child ()

ArvDomNode *
arv_dom_node_get_last_child (ArvDomNode *self);

Parameters

self

a ArvDomNode

 

Returns

self last child.

[transfer none]


arv_dom_node_get_previous_sibling ()

ArvDomNode *
arv_dom_node_get_previous_sibling (ArvDomNode *self);

Parameters

self

a ArvDomNode

 

Returns

self previous sibling.

[transfer none]


arv_dom_node_get_next_sibling ()

ArvDomNode *
arv_dom_node_get_next_sibling (ArvDomNode *self);

Parameters

self

a ArvDomNode

 

Returns

self next sibling.

[transfer none]


arv_dom_node_get_attributes ()

ArvDomNamedNodeMap *
arv_dom_node_get_attributes (ArvDomNode *self);

arv_dom_node_insert_before ()

ArvDomNode *
arv_dom_node_insert_before (ArvDomNode *self,
                            ArvDomNode *new_child,
                            ArvDomNode *ref_child);

Inserts the node new_child before the existing child node ref_child . If ref_child is null, insert new_child at the end of the list of children. If the new_child is already in the tree, it is first removed.

Parameters

self

a ArvDomNode

 

new_child

node to insert.

[transfer full]

ref_child

reference node, i.e., the node before which the new node must be inserted.

[transfer none]

Returns

the inserted node.

[transfer none]


arv_dom_node_replace_child ()

ArvDomNode *
arv_dom_node_replace_child (ArvDomNode *self,
                            ArvDomNode *new_child,
                            ArvDomNode *old_child);

Replaces the child node old_child with new_child in the list of children, and returns the old_child node. If the new_child is already in the tree, it is first removed.

Parameters

self

a ArvDomNode

 

new_child

a replacement node.

[transfer full]

old_child

node to replace.

[transfer none]

Returns

the replaced node.

[transfer full]


arv_dom_node_append_child ()

ArvDomNode *
arv_dom_node_append_child (ArvDomNode *self,
                           ArvDomNode *new_child);

Adds the node new_child to the end of the list of children of this node. If the new_child is already in the tree, it is first removed.

Parameters

self

a ArvDomNode

 

new_child

node to append.

[transfer full]

Returns

the added node.

[transfer none]


arv_dom_node_remove_child ()

ArvDomNode *
arv_dom_node_remove_child (ArvDomNode *self,
                           ArvDomNode *old_child);

Removes the child node indicated by old_child from the list of children, and returns it.

Parameters

self

a ArvDomNode

 

old_child

node to remove.

[transfer none]

Returns

the removed node.

[transfer full]


arv_dom_node_has_child_nodes ()

gboolean
arv_dom_node_has_child_nodes (ArvDomNode *self);

arv_dom_node_changed ()

void
arv_dom_node_changed (ArvDomNode *self);

arv_dom_node_get_owner_document ()

ArvDomDocument *
arv_dom_node_get_owner_document (ArvDomNode *self);

Parameters

self

a ArvDomNode

 

Returns

self owner document.

[transfer none]

Types and Values

ArvDomNode

typedef struct _ArvDomNode ArvDomNode;