GXmlDomElementList

GXmlDomElementList

Functions

Types and Values

Description

Functions

gxml_dom_element_list_new ()

GXmlDomElementList *
gxml_dom_element_list_new (void);

gxml_dom_element_get_attribute ()

gchar *
gxml_dom_element_get_attribute (GXmlDomElement *self,
                                const gchar *name);

Parameters

self

the GXmlDomElement instance

 

name

 

 

gxml_dom_element_get_attribute_ns ()

gchar *
gxml_dom_element_get_attribute_ns (GXmlDomElement *self,
                                   const gchar *namespace,
                                   const gchar *local_name);

Parameters

self

the GXmlDomElement instance

 

@namespace

 

 

local_name

 

 

gxml_dom_element_set_attribute ()

void
gxml_dom_element_set_attribute (GXmlDomElement *self,
                                const gchar *name,
                                const gchar *value,
                                GError **error);

Parameters

self

the GXmlDomElement instance

 

name

 

 

value

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_dom_element_set_attribute_ns ()

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.

Parameters

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 NULL to ignore

 

gxml_dom_element_remove_attribute ()

void
gxml_dom_element_remove_attribute (GXmlDomElement *self,
                                   const gchar *name);

Parameters

self

the GXmlDomElement instance

 

name

 

 

gxml_dom_element_remove_attribute_ns ()

void
gxml_dom_element_remove_attribute_ns (GXmlDomElement *self,
                                      const gchar *namespace,
                                      const gchar *local_name);

Parameters

self

the GXmlDomElement instance

 

@namespace

 

 

local_name

 

 

gxml_dom_element_has_attribute ()

gboolean
gxml_dom_element_has_attribute (GXmlDomElement *self,
                                const gchar *name);

Parameters

self

the GXmlDomElement instance

 

name

 

 

gxml_dom_element_has_attribute_ns ()

gboolean
gxml_dom_element_has_attribute_ns (GXmlDomElement *self,
                                   const gchar *namespace,
                                   const gchar *local_name);

Parameters

self

the GXmlDomElement instance

 

@namespace

 

 

local_name

 

 

gxml_dom_element_get_elements_by_tag_name ()

GXmlDomHTMLCollection *
gxml_dom_element_get_elements_by_tag_name
                               (GXmlDomElement *self,
                                const gchar *local_name);

Parameters

self

the GXmlDomElement instance

 

local_name

 

 

gxml_dom_element_get_elements_by_tag_name_ns ()

GXmlDomHTMLCollection *
gxml_dom_element_get_elements_by_tag_name_ns
                               (GXmlDomElement *self,
                                const gchar *namespace,
                                const gchar *local_name);

Parameters

self

the GXmlDomElement instance

 

@namespace

 

 

local_name

 

 

gxml_dom_element_get_elements_by_class_name ()

GXmlDomHTMLCollection *
gxml_dom_element_get_elements_by_class_name
                               (GXmlDomElement *self,
                                const gchar *class_names);

Parameters

self

the GXmlDomElement instance

 

class_names

 

 

gxml_dom_element_get_namespace_uri ()

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.

Parameters

self

the GXmlDomElement instance to query

 

Returns

the value of the "namespace-uri" property


gxml_dom_element_get_prefix ()

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.

Parameters

self

the GXmlDomElement instance to query

 

Returns

the value of the "prefix" property


gxml_dom_element_get_local_name ()

gchar *
gxml_dom_element_get_local_name (GXmlDomElement *self);

Get and return the current value of the "local-name" property.

Parameters

self

the GXmlDomElement instance to query

 

Returns

the value of the "local-name" property


gxml_dom_element_get_tag_name ()

gchar *
gxml_dom_element_get_tag_name (GXmlDomElement *self);

Get and return the current value of the "tag-name" property.

Parameters

self

the GXmlDomElement instance to query

 

Returns

the value of the "tag-name" property


gxml_dom_element_get_id ()

gchar *
gxml_dom_element_get_id (GXmlDomElement *self);

Get and return the current value of the "id" property.

Parameters

self

the GXmlDomElement instance to query

 

Returns

the value of the "id" property


gxml_dom_element_set_id ()

void
gxml_dom_element_set_id (GXmlDomElement *self,
                         const gchar *value);

Set the value of the "id" property to value .

Parameters

self

the GXmlDomElement instance to modify

 

value

the new value of the "id" property

 

gxml_dom_element_get_class_name ()

gchar *
gxml_dom_element_get_class_name (GXmlDomElement *self);

Get and return the current value of the "class-name" property.

Parameters

self

the GXmlDomElement instance to query

 

Returns

the value of the "class-name" property


gxml_dom_element_set_class_name ()

void
gxml_dom_element_set_class_name (GXmlDomElement *self,
                                 const gchar *value);

Set the value of the "class-name" property to value .

Parameters

self

the GXmlDomElement instance to modify

 

value

the new value of the "class-name" property

 

gxml_dom_element_get_class_list ()

GXmlDomTokenList *
gxml_dom_element_get_class_list (GXmlDomElement *self);

Get and return the current value of the "class-list" property.

Parameters

self

the GXmlDomElement instance to query

 

Returns

the value of the "class-list" property


gxml_dom_element_get_attributes ()

GXmlDomNamedNodeMap *
gxml_dom_element_get_attributes (GXmlDomElement *self);

Get and return the current value of the "attributes" property.

Parameters

self

the GXmlDomElement instance to query

 

Returns

the value of the "attributes" property

Types and Values

GXML_TYPE_DOM_ELEMENT_LIST

#define GXML_TYPE_DOM_ELEMENT_LIST (gxml_dom_element_list_get_type ())

The type for GXmlDomElementList.


struct GXmlDomElementList

struct GXmlDomElementList {
	GeeArrayList parent_instance;
	GXmlDomElementListPrivate * priv;
};

struct GXmlDomElementListClass

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.

Members


GXmlDomElement

typedef struct _GXmlDomElement GXmlDomElement;

struct GXmlDomElementIface

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.

Members

GTypeInterface parent_iface;

the parent interface structure

 

get_attribute ()

virtual method called by gxml_dom_element_get_attribute()

 

get_attribute_ns ()

virtual method called by gxml_dom_element_get_attribute_ns()

 

set_attribute ()

virtual method called by gxml_dom_element_set_attribute()

 

set_attribute_ns ()

virtual method called by gxml_dom_element_set_attribute_ns()

 

remove_attribute ()

virtual method called by gxml_dom_element_remove_attribute()

 

remove_attribute_ns ()

virtual method called by gxml_dom_element_remove_attribute_ns()

 

has_attribute ()

virtual method called by gxml_dom_element_has_attribute()

 

has_attribute_ns ()

virtual method called by gxml_dom_element_has_attribute_ns()

 

get_elements_by_tag_name ()

virtual method called by gxml_dom_element_get_elements_by_tag_name()

 

get_elements_by_tag_name_ns ()

virtual method called by gxml_dom_element_get_elements_by_tag_name_ns()

 

get_elements_by_class_name ()

virtual method called by gxml_dom_element_get_elements_by_class_name()

 

get_namespace_uri ()

getter method for the abstract property "namespace-uri"

 

get_prefix ()

getter method for the abstract property "prefix"

 

get_local_name ()

getter method for the abstract property "local-name"

 

get_tag_name ()

getter method for the abstract property "tag-name"

 

get_id ()

getter method for the abstract property "id"

 

set_id ()

setter method for the abstract property "id"

 

get_class_name ()

getter method for the abstract property "class-name"

 

set_class_name ()

setter method for the abstract property "class-name"

 

get_class_list ()

getter method for the abstract property "class-list"

 

get_attributes ()

getter method for the abstract property "attributes"