Top | ![]() |
![]() |
![]() |
![]() |
GXmlxNode * | gxml_xnode_list_item () |
GXmlxNode * | gxml_xnode_list_insert_before () |
GXmlxNode * | gxml_xnode_list_replace_child () |
GXmlxNode * | gxml_xnode_list_remove_child () |
GXmlxNode * | gxml_xnode_list_append_child () |
gchar * | gxml_xnode_list_to_string () |
GXmlxNode * | gxml_xnode_list_first () |
GXmlxNode * | gxml_xnode_list_last () |
GXmlxNode * | gxml_xnode_list_get () |
gulong | gxml_xnode_list_get_length () |
void | gxml_xnode_list_set_length () |
A live list used to store GXmlxNodes.
Usually contains the children of a GXmlxNode, or the results of gxml_xelement_get_elements_by_tag_name()
. GXmlNodeList implements both the DOM Level 1 Core API for a NodeList, as well as the GList API, to make it more accessible and familiar to GLib programmers. Implementing classes also implement GeeIterable, to make iteration in supporting languages (like Vala) nice and easy.
Version: DOM Level 1 Core
URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-536297177
GXmlxNode * gxml_xnode_list_item (GXmlxNodeList *self
,gulong idx
);
Access the idx'th item in the list.
Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#method-item
GXmlxNode * gxml_xnode_list_insert_before (GXmlxNodeList *self
,GXmlxNode *new_child
,GXmlxNode *ref_child
);
GXmlxNode * gxml_xnode_list_replace_child (GXmlxNodeList *self
,GXmlxNode *new_child
,GXmlxNode *old_child
);
GXmlxNode * gxml_xnode_list_remove_child (GXmlxNodeList *self
,GXmlxNode *old_child
);
GXmlxNode * gxml_xnode_list_append_child (GXmlxNodeList *self
,GXmlxNode *new_child
);
gchar * gxml_xnode_list_to_string (GXmlxNodeList *self
,gboolean in_line
);
Creates an XML string representation of the nodes in the list.
todo: write a test
self |
the GXmlxNodeList instance |
|
in_line |
. Whether to parse and expand entities or not . |
[in] |
GXmlxNode *
gxml_xnode_list_first (GXmlxNodeList *self
);
Retrieve the first node in the list. Like
.g_list_first()
GXmlxNode *
gxml_xnode_list_last (GXmlxNodeList *self
);
Retrieve the last node in the list. Like
.g_list_last()
GXmlxNode * gxml_xnode_list_get (GXmlxNodeList *self
,gint n
);
Obtain the n'th item in the list. Like
.g_list_nth()
gulong
gxml_xnode_list_get_length (GXmlxNodeList *self
);
Get and return the current value of the "length" property.
The number of nodes contained within this list
Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#attribute-length
void gxml_xnode_list_set_length (GXmlxNodeList *self
,gulong value
);
Set the value of the "length" property to value
.
The number of nodes contained within this list
Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#attribute-length
typedef struct _GXmlxNodeList GXmlxNodeList;
DOM API. Interface to access a list of nodes.
A live list used to store GXmlxNodes.
Usually contains the children of a GXmlxNode, or the results of gxml_xelement_get_elements_by_tag_name()
. GXmlNodeList implements both the DOM Level 1 Core API for a NodeList, as well as the GList API, to make it more accessible and familiar to GLib programmers. Implementing classes also implement GeeIterable, to make iteration in supporting languages (like Vala) nice and easy.
Version: DOM Level 1 Core
URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-536297177
struct GXmlxNodeListIface { GTypeInterface parent_iface; GXmlxNode* (*item) (GXmlxNodeList* self, gulong idx); GXmlxNode* (*insert_before) (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* ref_child); GXmlxNode* (*replace_child) (GXmlxNodeList* self, GXmlxNode* new_child, GXmlxNode* old_child); GXmlxNode* (*remove_child) (GXmlxNodeList* self, GXmlxNode* old_child); GXmlxNode* (*append_child) (GXmlxNodeList* self, GXmlxNode* new_child); gchar* (*to_string) (GXmlxNodeList* self, gboolean in_line); GXmlxNode* (*first) (GXmlxNodeList* self); GXmlxNode* (*last) (GXmlxNodeList* self); GXmlxNode* (*get) (GXmlxNodeList* self, gint n); gulong (*get_length) (GXmlxNodeList* self); void (*set_length) (GXmlxNodeList* self, gulong value); };
Interface for creating GXmlxNodeList implementations.
the parent interface structure |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
getter method for the abstract property "length" |
||
setter method for the abstract property "length" |