Top | ![]() |
![]() |
![]() |
![]() |
#define | GXML_TYPE_DOM_ELEMENT_LIST |
struct | GXmlDomElementList |
struct | GXmlDomElementListClass |
GXmlDomElement | |
struct | GXmlDomElementIface |
gchar * gxml_dom_element_get_attribute (GXmlDomElement *self
,const gchar *name
);
gchar * gxml_dom_element_get_attribute_ns (GXmlDomElement *self
,const gchar *namespace
,const gchar *local_name
);
void gxml_dom_element_set_attribute (GXmlDomElement *self
,const gchar *name
,const gchar *value
,GError **error
);
self |
the GXmlDomElement instance |
|
name |
|
|
value |
|
|
error |
location to store the error occuring, or |
void gxml_dom_element_set_attribute_ns (GXmlDomElement *self
,const gchar *namespace
,const gchar *name
,const gchar *value
,GError **error
);
Set an attribute value to this element. If it doesn't exists yet, it is added to the list of attributes, unless it is an namespace redefinition.
To set a namespace declaration http://www.w3.org/2000/xmlns namespace and xmlns as prefix. For default namespaces, use xmlns as name without prefix. Namespace URI will be the one provided as value.
namespace |
attribute namespace |
|
self |
the GXmlDomElement instance |
|
name |
. a prefixed attribute name or xmlns for default namespace declaration . |
[in] |
value |
. a value for the attribute or URI for namespace declaration . |
[in] |
@namespace |
|
|
error |
location to store the error occuring, or |
void gxml_dom_element_remove_attribute (GXmlDomElement *self
,const gchar *name
);
void gxml_dom_element_remove_attribute_ns (GXmlDomElement *self
,const gchar *namespace
,const gchar *local_name
);
gboolean gxml_dom_element_has_attribute (GXmlDomElement *self
,const gchar *name
);
gboolean gxml_dom_element_has_attribute_ns (GXmlDomElement *self
,const gchar *namespace
,const gchar *local_name
);
GXmlDomHTMLCollection * gxml_dom_element_get_elements_by_tag_name (GXmlDomElement *self
,const gchar *local_name
);
GXmlDomHTMLCollection * gxml_dom_element_get_elements_by_tag_name_ns (GXmlDomElement *self
,const gchar *namespace
,const gchar *local_name
);
GXmlDomHTMLCollection * gxml_dom_element_get_elements_by_class_name (GXmlDomElement *self
,const gchar *class_names
);
gchar *
gxml_dom_element_get_namespace_uri (GXmlDomElement *self
);
Get and return the current value of the "namespace-uri" property.
Returns default namespace's uri defined in node or first found.
gchar *
gxml_dom_element_get_prefix (GXmlDomElement *self
);
Get and return the current value of the "prefix" property.
Returns default namespace's prefix defined in node or first found.
gchar *
gxml_dom_element_get_local_name (GXmlDomElement *self
);
Get and return the current value of the "local-name" property.
gchar *
gxml_dom_element_get_tag_name (GXmlDomElement *self
);
Get and return the current value of the "tag-name" property.
gchar *
gxml_dom_element_get_id (GXmlDomElement *self
);
Get and return the current value of the "id" property.
void gxml_dom_element_set_id (GXmlDomElement *self
,const gchar *value
);
Set the value of the "id" property to value
.
gchar *
gxml_dom_element_get_class_name (GXmlDomElement *self
);
Get and return the current value of the "class-name" property.
void gxml_dom_element_set_class_name (GXmlDomElement *self
,const gchar *value
);
Set the value of the "class-name" property to value
.
self |
the GXmlDomElement instance to modify |
|
value |
the new value of the "class-name" property |
GXmlDomTokenList *
gxml_dom_element_get_class_list (GXmlDomElement *self
);
Get and return the current value of the "class-list" property.
GXmlDomNamedNodeMap *
gxml_dom_element_get_attributes (GXmlDomElement *self
);
Get and return the current value of the "attributes" property.
#define GXML_TYPE_DOM_ELEMENT_LIST (gxml_dom_element_list_get_type ())
The type for GXmlDomElementList.
struct GXmlDomElementList { GeeArrayList parent_instance; GXmlDomElementListPrivate * priv; };
struct GXmlDomElementListClass { GeeArrayListClass parent_class; };
The class structure for GXML_TYPE_DOM_ELEMENT_LIST
. All the fields in this structure are private and should never be accessed directly.
struct GXmlDomElementIface { GTypeInterface parent_iface; gchar* (*get_attribute) (GXmlDomElement* self, const gchar* name); gchar* (*get_attribute_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* local_name); void (*set_attribute) (GXmlDomElement* self, const gchar* name, const gchar* value, GError** error); void (*set_attribute_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* name, const gchar* value, GError** error); void (*remove_attribute) (GXmlDomElement* self, const gchar* name); void (*remove_attribute_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* local_name); gboolean (*has_attribute) (GXmlDomElement* self, const gchar* name); gboolean (*has_attribute_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* local_name); GXmlDomHTMLCollection* (*get_elements_by_tag_name) (GXmlDomElement* self, const gchar* local_name); GXmlDomHTMLCollection* (*get_elements_by_tag_name_ns) (GXmlDomElement* self, const gchar* namespace, const gchar* local_name); GXmlDomHTMLCollection* (*get_elements_by_class_name) (GXmlDomElement* self, const gchar* class_names); gchar* (*get_namespace_uri) (GXmlDomElement* self); gchar* (*get_prefix) (GXmlDomElement* self); gchar* (*get_local_name) (GXmlDomElement* self); gchar* (*get_tag_name) (GXmlDomElement* self); gchar* (*get_id) (GXmlDomElement* self); void (*set_id) (GXmlDomElement* self, const gchar* value); gchar* (*get_class_name) (GXmlDomElement* self); void (*set_class_name) (GXmlDomElement* self, const gchar* value); GXmlDomTokenList* (*get_class_list) (GXmlDomElement* self); GXmlDomNamedNodeMap* (*get_attributes) (GXmlDomElement* self); };
Interface for creating GXmlDomElement 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 |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
getter method for the abstract property "namespace-uri" |
||
getter method for the abstract property "prefix" |
||
getter method for the abstract property "local-name" |
||
getter method for the abstract property "tag-name" |
||
getter method for the abstract property "id" |
||
setter method for the abstract property "id" |
||
getter method for the abstract property "class-name" |
||
setter method for the abstract property "class-name" |
||
getter method for the abstract property "class-list" |
||
getter method for the abstract property "attributes" |