GXmlDomErrorName

GXmlDomErrorName

Functions

gchar * gxml_dom_error_name_get_name ()
gint gxml_dom_error_name_get_code ()
GXmlDomErrorName * gxml_dom_error_name_new ()
gboolean gxml_dom_node_has_child_nodes ()
void gxml_dom_node_normalize ()
gboolean gxml_dom_node_is_equal_node ()
GXmlDomNodeDocumentPosition gxml_dom_node_compare_document_position ()
gboolean gxml_dom_node_contains ()
gchar * gxml_dom_node_lookup_prefix ()
gchar * gxml_dom_node_lookup_namespace_uri ()
gboolean gxml_dom_node_is_default_namespace ()
GXmlDomNode * gxml_dom_node_insert_before ()
GXmlDomNode * gxml_dom_node_append_child ()
GXmlDomNode * gxml_dom_node_replace_child ()
GXmlDomNode * gxml_dom_node_remove_child ()
GXmlDomNode * gxml_dom_node_clone_node ()
GXmlDomNodeNodeType gxml_dom_node_get_node_type ()
gchar * gxml_dom_node_get_node_name ()
const gchar * gxml_dom_node_get_base_uri ()
GXmlDomDocument * gxml_dom_node_get_owner_document ()
void gxml_dom_node_set_owner_document ()
GXmlDomNode * gxml_dom_node_get_parent_node ()
GXmlDomElement * gxml_dom_node_get_parent_element ()
GXmlDomNodeList * gxml_dom_node_get_child_nodes ()
GXmlDomNode * gxml_dom_node_get_first_child ()
GXmlDomNode * gxml_dom_node_get_last_child ()
GXmlDomNode * gxml_dom_node_get_previous_sibling ()
GXmlDomNode * gxml_dom_node_get_next_sibling ()
gchar * gxml_dom_node_get_node_value ()
void gxml_dom_node_set_node_value ()
gchar * gxml_dom_node_get_text_content ()
void gxml_dom_node_set_text_content ()
gboolean gxml_dom_node_copy ()

Types and Values

Description

Functions

gxml_dom_error_name_get_name ()

gchar *
gxml_dom_error_name_get_name (GXmlDomErrorName *self,
                              gint error_code);

Parameters

self

the GXmlDomErrorName instance

 

error_code

 

 

gxml_dom_error_name_get_code ()

gint
gxml_dom_error_name_get_code (GXmlDomErrorName *self,
                              const gchar *error_name);

Parameters

self

the GXmlDomErrorName instance

 

error_name

 

 

gxml_dom_error_name_new ()

GXmlDomErrorName *
gxml_dom_error_name_new (void);

gxml_dom_node_has_child_nodes ()

gboolean
gxml_dom_node_has_child_nodes (GXmlDomNode *self);

Parameters

self

the GXmlDomNode instance

 

gxml_dom_node_normalize ()

void
gxml_dom_node_normalize (GXmlDomNode *self);

Parameters

self

the GXmlDomNode instance

 

gxml_dom_node_is_equal_node ()

gboolean
gxml_dom_node_is_equal_node (GXmlDomNode *self,
                             GXmlDomNode *node);

Parameters

self

the GXmlDomNode instance

 

node

 

 

gxml_dom_node_compare_document_position ()

GXmlDomNodeDocumentPosition
gxml_dom_node_compare_document_position
                               (GXmlDomNode *self,
                                GXmlDomNode *other);

Parameters

self

the GXmlDomNode instance

 

other

 

 

gxml_dom_node_contains ()

gboolean
gxml_dom_node_contains (GXmlDomNode *self,
                        GXmlDomNode *other);

Parameters

self

the GXmlDomNode instance

 

other

 

 

gxml_dom_node_lookup_prefix ()

gchar *
gxml_dom_node_lookup_prefix (GXmlDomNode *self,
                             const gchar *nspace);

Parameters

self

the GXmlDomNode instance

 

nspace

 

 

gxml_dom_node_lookup_namespace_uri ()

gchar *
gxml_dom_node_lookup_namespace_uri (GXmlDomNode *self,
                                    const gchar *prefix);

Parameters

self

the GXmlDomNode instance

 

prefix

 

 

gxml_dom_node_is_default_namespace ()

gboolean
gxml_dom_node_is_default_namespace (GXmlDomNode *self,
                                    const gchar *nspace);

Parameters

self

the GXmlDomNode instance

 

nspace

 

 

gxml_dom_node_insert_before ()

GXmlDomNode *
gxml_dom_node_insert_before (GXmlDomNode *self,
                             GXmlDomNode *node,
                             GXmlDomNode *child,
                             GError **error);

Parameters

self

the GXmlDomNode instance

 

node

 

 

child

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_dom_node_append_child ()

GXmlDomNode *
gxml_dom_node_append_child (GXmlDomNode *self,
                            GXmlDomNode *node,
                            GError **error);

Parameters

self

the GXmlDomNode instance

 

node

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_dom_node_replace_child ()

GXmlDomNode *
gxml_dom_node_replace_child (GXmlDomNode *self,
                             GXmlDomNode *node,
                             GXmlDomNode *child,
                             GError **error);

Parameters

self

the GXmlDomNode instance

 

node

 

 

child

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_dom_node_remove_child ()

GXmlDomNode *
gxml_dom_node_remove_child (GXmlDomNode *self,
                            GXmlDomNode *child,
                            GError **error);

Parameters

self

the GXmlDomNode instance

 

child

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_dom_node_clone_node ()

GXmlDomNode *
gxml_dom_node_clone_node (GXmlDomNode *self,
                          gboolean deep,
                          GError **error);

Parameters

self

the GXmlDomNode instance

 

deep

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_dom_node_get_node_type ()

GXmlDomNodeNodeType
gxml_dom_node_get_node_type (GXmlDomNode *self);

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

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "node-type" property


gxml_dom_node_get_node_name ()

gchar *
gxml_dom_node_get_node_name (GXmlDomNode *self);

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

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "node-name" property


gxml_dom_node_get_base_uri ()

const gchar *
gxml_dom_node_get_base_uri (GXmlDomNode *self);

Get and return the current value of the "base-uri" property.

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "base-uri" property


gxml_dom_node_get_owner_document ()

GXmlDomDocument *
gxml_dom_node_get_owner_document (GXmlDomNode *self);

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

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "owner-document" property


gxml_dom_node_set_owner_document ()

void
gxml_dom_node_set_owner_document (GXmlDomNode *self,
                                  GXmlDomDocument *value);

Set the value of the "owner-document" property to value .

Parameters

self

the GXmlDomNode instance to modify

 

value

the new value of the "owner-document" property

 

gxml_dom_node_get_parent_node ()

GXmlDomNode *
gxml_dom_node_get_parent_node (GXmlDomNode *self);

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

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "parent-node" property


gxml_dom_node_get_parent_element ()

GXmlDomElement *
gxml_dom_node_get_parent_element (GXmlDomNode *self);

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

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "parent-element" property


gxml_dom_node_get_child_nodes ()

GXmlDomNodeList *
gxml_dom_node_get_child_nodes (GXmlDomNode *self);

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

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "child-nodes" property


gxml_dom_node_get_first_child ()

GXmlDomNode *
gxml_dom_node_get_first_child (GXmlDomNode *self);

Get and return the current value of the "first-child" property.

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "first-child" property


gxml_dom_node_get_last_child ()

GXmlDomNode *
gxml_dom_node_get_last_child (GXmlDomNode *self);

Get and return the current value of the "last-child" property.

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "last-child" property


gxml_dom_node_get_previous_sibling ()

GXmlDomNode *
gxml_dom_node_get_previous_sibling (GXmlDomNode *self);

Get and return the current value of the "previous-sibling" property.

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "previous-sibling" property


gxml_dom_node_get_next_sibling ()

GXmlDomNode *
gxml_dom_node_get_next_sibling (GXmlDomNode *self);

Get and return the current value of the "next-sibling" property.

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "next-sibling" property


gxml_dom_node_get_node_value ()

gchar *
gxml_dom_node_get_node_value (GXmlDomNode *self);

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

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "node-value" property


gxml_dom_node_set_node_value ()

void
gxml_dom_node_set_node_value (GXmlDomNode *self,
                              const gchar *value);

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

Parameters

self

the GXmlDomNode instance to modify

 

value

the new value of the "node-value" property

 

gxml_dom_node_get_text_content ()

gchar *
gxml_dom_node_get_text_content (GXmlDomNode *self);

Get and return the current value of the "text-content" property.

Parameters

self

the GXmlDomNode instance to query

 

Returns

the value of the "text-content" property


gxml_dom_node_set_text_content ()

void
gxml_dom_node_set_text_content (GXmlDomNode *self,
                                const gchar *value);

Set the value of the "text-content" property to value .

Parameters

self

the GXmlDomNode instance to modify

 

value

the new value of the "text-content" property

 

gxml_dom_node_copy ()

gboolean
gxml_dom_node_copy (GXmlDomDocument *doc,
                    GXmlDomNode *node,
                    GXmlDomNode *source,
                    gboolean deep,
                    GError **error);

Copy a GXmlDomNode relaying on GXmlDomDocument to other GXmlDomNode.

node could belongs from different GXmlDomDocument, while source is a node belonging to given document.

Only GXmlDomElement objects are supported. For attributes, use gxml_dom_element_set_attribute() method, passing source's name and value as arguments.

Parameters

doc

 .

a GXmlDomDocument owning destiny node

.

[in]

node

 .

a GXmlDomElement to copy nodes to

.

[in]

source

 .

a GXmlDomElement to copy nodes from, it could be holded by different GXmlDomDocument

.

[in]

deep

 

 

error

location to store the error occuring, or NULL to ignore

 

Types and Values

GXML_TYPE_DOM_ERROR_NAME

#define GXML_TYPE_DOM_ERROR_NAME (gxml_dom_error_name_get_type ())

The type for GXmlDomErrorName.


struct GXmlDomErrorName

struct GXmlDomErrorName {
	GObject parent_instance;
	GXmlDomErrorNamePrivate * priv;
};

struct GXmlDomErrorNameClass

struct GXmlDomErrorNameClass {
	GObjectClass parent_class;
};

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

Members


enum GXmlDomError

Members

GXML_DOM_ERROR_INDEX_SIZE_ERROR

   

GXML_DOM_ERROR_DOMSTRING_SIZE_ERROR

   

GXML_DOM_ERROR_HIERARCHY_REQUEST_ERROR

   

GXML_DOM_ERROR_WRONG_DOCUMENT_ERROR

   

GXML_DOM_ERROR_INVALID_CHARACTER_ERROR

   

GXML_DOM_ERROR_NO_DATA_ALLOWED_ERROR

   

GXML_DOM_ERROR_NO_MODIFICATION_ALLOWED_ERROR

   

GXML_DOM_ERROR_NOT_FOUND_ERROR

   

GXML_DOM_ERROR_NOT_SUPPORTED_ERROR

   

GXML_DOM_ERROR_INUSE_ATTRIBUTE_ERROR

   

GXML_DOM_ERROR_INVALID_STATE_ERROR

   

GXML_DOM_ERROR_SYNTAX_ERROR

   

GXML_DOM_ERROR_INVALID_MODIFICATION_ERROR

   

GXML_DOM_ERROR_NAMESPACE_ERROR

   

GXML_DOM_ERROR_INVALID_ACCESS_ERROR

   

GXML_DOM_ERROR_VALIDATION_ERROR

   

GXML_DOM_ERROR_TYPE_MISMATCH_ERROR

   

GXML_DOM_ERROR_SECURITY_ERROR

   

GXML_DOM_ERROR_NETWORK_ERROR

   

GXML_DOM_ERROR_ABORT_ERROR

   

GXML_DOM_ERROR_URL_MISMATCH_ERROR

   

GXML_DOM_ERROR_QUOTA_EXCEEDED_ERROR

   

GXML_DOM_ERROR_TIME_OUT_ERROR

   

GXML_DOM_ERROR_INVALID_NODE_TYPE_ERROR

   

GXML_DOM_ERROR_DATA_CLONE_ERROR

   

enum GXmlDomNodeNodeType

Members

GXML_DOM_NODE_NODE_TYPE_INVALID

   

GXML_DOM_NODE_NODE_TYPE_ELEMENT_NODE

   

GXML_DOM_NODE_NODE_TYPE_ATTRIBUTE_NODE

   

GXML_DOM_NODE_NODE_TYPE_TEXT_NODE

   

GXML_DOM_NODE_NODE_TYPE_CDATA_SECTION_NODE

   

GXML_DOM_NODE_NODE_TYPE_ENTITY_REFERENCE_NODE

   

GXML_DOM_NODE_NODE_TYPE_ENTITY_NODE

   

GXML_DOM_NODE_NODE_TYPE_PROCESSING_INSTRUCTION_NODE

   

GXML_DOM_NODE_NODE_TYPE_COMMENT_NODE

   

GXML_DOM_NODE_NODE_TYPE_DOCUMENT_NODE

   

GXML_DOM_NODE_NODE_TYPE_DOCUMENT_TYPE_NODE

   

GXML_DOM_NODE_NODE_TYPE_DOCUMENT_FRAGMENT_NODE

   

GXML_DOM_NODE_NODE_TYPE_NOTATION_NODE

   

enum GXmlDomNodeDocumentPosition

Members

GXML_DOM_NODE_DOCUMENT_POSITION_NONE

   

GXML_DOM_NODE_DOCUMENT_POSITION_DISCONNECTED

   

GXML_DOM_NODE_DOCUMENT_POSITION_PRECEDING

   

GXML_DOM_NODE_DOCUMENT_POSITION_FOLLOWING

   

GXML_DOM_NODE_DOCUMENT_POSITION_CONTAINS

   

GXML_DOM_NODE_DOCUMENT_POSITION_CONTAINED_BY

   

GXML_DOM_NODE_DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

   

GXmlDomNode

typedef struct _GXmlDomNode GXmlDomNode;

struct GXmlDomNodeIface

struct GXmlDomNodeIface {
	GTypeInterface parent_iface;
	gboolean (*has_child_nodes) (GXmlDomNode* self);
	void (*normalize) (GXmlDomNode* self);
	gboolean (*is_equal_node) (GXmlDomNode* self, GXmlDomNode* node);
	GXmlDomNodeDocumentPosition (*compare_document_position) (GXmlDomNode* self, GXmlDomNode* other);
	gboolean (*contains) (GXmlDomNode* self, GXmlDomNode* other);
	gchar* (*lookup_prefix) (GXmlDomNode* self, const gchar* nspace);
	gchar* (*lookup_namespace_uri) (GXmlDomNode* self, const gchar* prefix);
	gboolean (*is_default_namespace) (GXmlDomNode* self, const gchar* nspace);
	GXmlDomNode* (*insert_before) (GXmlDomNode* self, GXmlDomNode* node, GXmlDomNode* child, GError** error);
	GXmlDomNode* (*append_child) (GXmlDomNode* self, GXmlDomNode* node, GError** error);
	GXmlDomNode* (*replace_child) (GXmlDomNode* self, GXmlDomNode* node, GXmlDomNode* child, GError** error);
	GXmlDomNode* (*remove_child) (GXmlDomNode* self, GXmlDomNode* child, GError** error);
	GXmlDomNode* (*clone_node) (GXmlDomNode* self, gboolean deep, GError** error);
	GXmlDomNodeNodeType (*get_node_type) (GXmlDomNode* self);
	gchar* (*get_node_name) (GXmlDomNode* self);
	const gchar* (*get_base_uri) (GXmlDomNode* self);
	GXmlDomDocument* (*get_owner_document) (GXmlDomNode* self);
	void (*set_owner_document) (GXmlDomNode* self, GXmlDomDocument* value);
	GXmlDomNode* (*get_parent_node) (GXmlDomNode* self);
	GXmlDomElement* (*get_parent_element) (GXmlDomNode* self);
	GXmlDomNodeList* (*get_child_nodes) (GXmlDomNode* self);
	GXmlDomNode* (*get_first_child) (GXmlDomNode* self);
	GXmlDomNode* (*get_last_child) (GXmlDomNode* self);
	GXmlDomNode* (*get_previous_sibling) (GXmlDomNode* self);
	GXmlDomNode* (*get_next_sibling) (GXmlDomNode* self);
	gchar* (*get_node_value) (GXmlDomNode* self);
	void (*set_node_value) (GXmlDomNode* self, const gchar* value);
	gchar* (*get_text_content) (GXmlDomNode* self);
	void (*set_text_content) (GXmlDomNode* self, const gchar* value);
};

Interface for creating GXmlDomNode implementations.

Members

GTypeInterface parent_iface;

the parent interface structure

 

has_child_nodes ()

virtual method called by gxml_dom_node_has_child_nodes()

 

normalize ()

virtual method called by gxml_dom_node_normalize()

 

is_equal_node ()

virtual method called by gxml_dom_node_is_equal_node()

 

compare_document_position ()

virtual method called by gxml_dom_node_compare_document_position()

 

contains ()

virtual method called by gxml_dom_node_contains()

 

lookup_prefix ()

virtual method called by gxml_dom_node_lookup_prefix()

 

lookup_namespace_uri ()

virtual method called by gxml_dom_node_lookup_namespace_uri()

 

is_default_namespace ()

virtual method called by gxml_dom_node_is_default_namespace()

 

insert_before ()

virtual method called by gxml_dom_node_insert_before()

 

append_child ()

virtual method called by gxml_dom_node_append_child()

 

replace_child ()

virtual method called by gxml_dom_node_replace_child()

 

remove_child ()

virtual method called by gxml_dom_node_remove_child()

 

clone_node ()

virtual method called by gxml_dom_node_clone_node()

 

get_node_type ()

getter method for the abstract property "node-type"

 

get_node_name ()

getter method for the abstract property "node-name"

 

get_base_uri ()

getter method for the abstract property "base-uri"

 

get_owner_document ()

getter method for the abstract property "owner-document"

 

set_owner_document ()

   

get_parent_node ()

getter method for the abstract property "parent-node"

 

get_parent_element ()

getter method for the abstract property "parent-element"

 

get_child_nodes ()

getter method for the abstract property "child-nodes"

 

get_first_child ()

getter method for the abstract property "first-child"

 

get_last_child ()

getter method for the abstract property "last-child"

 

get_previous_sibling ()

getter method for the abstract property "previous-sibling"

 

get_next_sibling ()

getter method for the abstract property "next-sibling"

 

get_node_value ()

getter method for the abstract property "node-value"

 

set_node_value ()

setter method for the abstract property "node-value"

 

get_text_content ()

getter method for the abstract property "text-content"

 

set_text_content ()

setter method for the abstract property "text-content"