GXmlGNode

GXmlGNode — Base interface providing basic functionalities to all GXml interfaces.

Functions

Types and Values

#define GXML_TYPE_GNODE
struct GXmlGNode
struct GXmlGNodeClass
enum GXmlError

Description

Functions

gxml_gnode_set_namespace ()

gboolean
gxml_gnode_set_namespace (GXmlGNode *self,
                          const gchar *uri,
                          const gchar *prefix);

Parameters

self

the GXmlGNode instance

 

uri

 

 

prefix

 

 

gxml_gnode_to_string ()

gchar *
gxml_gnode_to_string (GXmlGNode *self);

Parameters

self

the GXmlGNode instance

 

gxml_gnode_get_internal_node ()

xmlNode *
gxml_gnode_get_internal_node (GXmlGNode *self);

Parameters

self

the GXmlGNode instance

 

gxml_gnode_get_attrs ()

GeeMap *
gxml_gnode_get_attrs (GXmlGNode *self);

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

Parameters

self

the GXmlGNode instance to query

 

Returns

the value of the "attrs" property


gxml_gnode_get_children_nodes ()

GeeBidirList *
gxml_gnode_get_children_nodes (GXmlGNode *self);

Get and return the current value of the "children-nodes" property.

Parameters

self

the GXmlGNode instance to query

 

Returns

the value of the "children-nodes" property


gxml_gnode_get_namespaces ()

GeeList *
gxml_gnode_get_namespaces (GXmlGNode *self);

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

Parameters

self

the GXmlGNode instance to query

 

Returns

the value of the "namespaces" property


gxml_gnode_get_document ()

GXmlDocument *
gxml_gnode_get_document (GXmlGNode *self);

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

Parameters

self

the GXmlGNode instance to query

 

Returns

the value of the "document" property


gxml_gnode_get_parent ()

GXmlNode *
gxml_gnode_get_parent (GXmlGNode *self);

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

Parameters

self

the GXmlGNode instance to query

 

Returns

the value of the "parent" property


gxml_gnode_get_type_node ()

GXmlNodeType
gxml_gnode_get_type_node (GXmlGNode *self);

Get and return the current value of the "type-node" property.

Parameters

self

the GXmlGNode instance to query

 

Returns

the value of the "type-node" property


gxml_gnode_get_name ()

gchar *
gxml_gnode_get_name (GXmlGNode *self);

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

Parameters

self

the GXmlGNode instance to query

 

Returns

the value of the "name" property


gxml_gnode_get_value ()

gchar *
gxml_gnode_get_value (GXmlGNode *self);

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

Parameters

self

the GXmlGNode instance to query

 

Returns

the value of the "value" property


gxml_gnode_set_value ()

void
gxml_gnode_set_value (GXmlGNode *self,
                      const gchar *value);

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

Parameters

self

the GXmlGNode instance to modify

 

value

the new value of the "value" property

 

gxml_gnode_to_gnode ()

GXmlNode *
gxml_gnode_to_gnode (GXmlGDocument *doc,
                     xmlNode *node);

Parameters

doc

 

 

node

 

 

Types and Values

GXML_TYPE_GNODE

#define GXML_TYPE_GNODE (gxml_gnode_get_type ())

The type for GXmlGNode.


struct GXmlGNode

struct GXmlGNode {
	GObject parent_instance;
	GXmlGNodePrivate * priv;
	GXmlGDocument* _doc;
	xmlNode* _node;
	gchar* _base_uri;
};

Base interface providing basic functionalities to all GXml interfaces.


struct GXmlGNodeClass

struct GXmlGNodeClass {
	GObjectClass parent_class;
	gboolean (*set_namespace) (GXmlGNode* self, const gchar* uri, const gchar* prefix);
	gchar* (*to_string) (GXmlGNode* self);
	GeeMap* (*get_attrs) (GXmlGNode* self);
	GeeBidirList* (*get_children_nodes) (GXmlGNode* self);
	GeeList* (*get_namespaces) (GXmlGNode* self);
	GXmlDocument* (*get_document) (GXmlGNode* self);
	GXmlNode* (*get_parent) (GXmlGNode* self);
	GXmlNodeType (*get_type_node) (GXmlGNode* self);
	gchar* (*get_name) (GXmlGNode* self);
	gchar* (*get_value) (GXmlGNode* self);
	void (*set_value) (GXmlGNode* self, const gchar* value);
};

The class structure for GXML_TYPE_GNODE. All the fields in this structure are private and should never be accessed directly.

Members

set_namespace ()

virtual method called by gxml_gnode_set_namespace()

 

to_string ()

virtual method called by gxml_gnode_to_string()

 

get_attrs ()

getter method for the abstract property "attrs"

 

get_children_nodes ()

getter method for the abstract property "children-nodes"

 

get_namespaces ()

getter method for the abstract property "namespaces"

 

get_document ()

getter method for the abstract property "document"

 

get_parent ()

getter method for the abstract property "parent"

 

get_type_node ()

getter method for the abstract property "type-node"

 

get_name ()

getter method for the abstract property "name"

 

get_value ()

getter method for the abstract property "value"

 

set_value ()

setter method for the abstract property "value"

 

enum GXmlError

Members

GXML_ERROR_NOT_SUPPORTED

   

GXML_ERROR_PARSER

   

GXML_ERROR_WRITER