![]() |
![]() |
![]() |
Lasem Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
LsmDomNode; const char * lsm_dom_node_get_node_name (LsmDomNode *self
); const char * lsm_dom_node_get_node_value (LsmDomNode *self
); void lsm_dom_node_set_node_value (LsmDomNode *self
,const char *new_value
); LsmDomNodeType lsm_dom_node_get_node_type (LsmDomNode *self
); LsmDomNode * lsm_dom_node_get_parent_node (LsmDomNode *self
); LsmDomNodeList * lsm_dom_node_get_child_nodes (LsmDomNode *self
); LsmDomNode * lsm_dom_node_get_first_child (LsmDomNode *self
); LsmDomNode * lsm_dom_node_get_last_child (LsmDomNode *self
); LsmDomNode * lsm_dom_node_get_previous_sibling (LsmDomNode *self
); LsmDomNode * lsm_dom_node_get_next_sibling (LsmDomNode *self
); LsmDomNamedNodeMap * lsm_dom_node_get_attributes (LsmDomNode *self
); LsmDomNode * lsm_dom_node_insert_before (LsmDomNode *self
,LsmDomNode *new_child
,LsmDomNode *ref_child
); LsmDomNode * lsm_dom_node_replace_child (LsmDomNode *self
,LsmDomNode *new_child
,LsmDomNode *old_child
); LsmDomNode * lsm_dom_node_append_child (LsmDomNode *self
,LsmDomNode *new_child
); LsmDomNode * lsm_dom_node_remove_child (LsmDomNode *self
,LsmDomNode *old_child
); gboolean lsm_dom_node_has_child_nodes (LsmDomNode *self
); void lsm_dom_node_changed (LsmDomNode *self
); LsmDomDocument * lsm_dom_node_get_owner_document (LsmDomNode *self
);
GObject +----LsmDomNode +----LsmDomCharacterData +----LsmDomDocument +----LsmDomElement
const char * lsm_dom_node_get_node_name (LsmDomNode *self
);
Gets the node name.
|
a LsmDomNode |
Returns : |
the node name. |
const char * lsm_dom_node_get_node_value (LsmDomNode *self
);
Gets the node value.
|
a LsmDomNode |
Returns : |
the node value. |
void lsm_dom_node_set_node_value (LsmDomNode *self
,const char *new_value
);
LsmDomNode * lsm_dom_node_get_parent_node (LsmDomNode *self
);
|
a LsmDomNode |
Returns : |
node parent. [transfer none] |
LsmDomNodeList * lsm_dom_node_get_child_nodes (LsmDomNode *self
);
|
a LsmDomNode |
Returns : |
node child list. [transfer none] |
LsmDomNode * lsm_dom_node_get_first_child (LsmDomNode *self
);
|
a LsmDomNode |
Returns : |
node first child. [transfer none] |
LsmDomNode * lsm_dom_node_get_last_child (LsmDomNode *self
);
|
a LsmDomNode |
Returns : |
node last child. [transfer none] |
LsmDomNode * lsm_dom_node_get_previous_sibling (LsmDomNode *self
);
|
a LsmDomNode |
Returns : |
node previous sibling. [transfer none] |
LsmDomNode * lsm_dom_node_get_next_sibling (LsmDomNode *self
);
|
a LsmDomNode |
Returns : |
node next sibling. [transfer none] |
LsmDomNode * lsm_dom_node_insert_before (LsmDomNode *self
,LsmDomNode *new_child
,LsmDomNode *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.
|
a LsmDomNode |
|
node to insert. [transfer full] |
|
reference node, i.e., the node before which the new node must be inserted. [transfer none] |
Returns : |
the inserted node. [transfer none] |
LsmDomNode * lsm_dom_node_replace_child (LsmDomNode *self
,LsmDomNode *new_child
,LsmDomNode *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.
|
a LsmDomNode |
|
a replacement node. [transfer full] |
|
node to replace. [transfer none] |
Returns : |
the replaced node. [transfer full] |
LsmDomNode * lsm_dom_node_append_child (LsmDomNode *self
,LsmDomNode *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.
|
a LsmDomNode |
|
node to append. [transfer full] |
Returns : |
the added node. [transfer none] |
LsmDomNode * lsm_dom_node_remove_child (LsmDomNode *self
,LsmDomNode *old_child
);
Removes the child node indicated by old_child
from the list of children, and returns it.
|
a LsmDomNode |
|
node to remove. [transfer none] |
Returns : |
the removed node. [transfer full] |
LsmDomDocument * lsm_dom_node_get_owner_document (LsmDomNode *self
);
|
a LsmDomNode |
Returns : |
node owner document. [transfer none] |