Xmlb.NodeAttrIter¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
dummy1 |
r |
||
dummy2 |
r |
||
dummy3 |
r |
||
dummy4 |
r |
||
dummy5 |
r |
||
dummy6 |
r |
Methods¶
|
|
|
Details¶
- class Xmlb.NodeAttrIter¶
A
Xmlb.NodeAttrIter
structure represents an iterator that can be used to iterate over the attributes of aXmlb.Node
.Xmlb.NodeAttrIter
structures are typically allocated on the stack and then initialized withXmlb.NodeAttrIter.init
().The iteration order of a
Xmlb.NodeAttrIter
is not defined.New in version 0.3.4.
- init(self)¶
-
Initializes a name/value pair iterator for the node attributes and associates it with self. The
Xmlb.NodeAttrIter
structure is typically allocated on the stack and does not need to be freed explicitly.New in version 0.3.4.
- next()¶
- Returns:
True
if there are more attributes.- name:
Destination of the returned attribute name
- value:
Destination of the returned attribute value
- Return type:
Returns the current attribute name and value and advances the iterator. Example:
XbNodeAttrIter iter; const gchar *attr_name, *attr_value; xb_node_attr_iter_init (&iter, node); while (xb_node_attr_iter_next (&iter, &attr_name, &attr_value)) { // use attr_name and attr_value; no need to free them }
New in version 0.3.4.