GXmlNamespace

GXmlNamespace — Interface to handle XML Namespaces.

Functions

Types and Values

Description

Basic information for a XML document's namespaces and applied to a given GXmlNode.

Namespace management is a matter of this or other libraries, implementing this interfaces.

Functions

gxml_namespace_get_uri ()

gchar *
gxml_namespace_get_uri (GXmlNamespace *self);

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

Read-only property to get namespace's URI.

Parameters

self

the GXmlNamespace instance to query

 

Returns

the value of the "uri" property


gxml_namespace_get_prefix ()

gchar *
gxml_namespace_get_prefix (GXmlNamespace *self);

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

Read-only property to get namespace's prefix.

Prefix should be added to GXmlElement or GXmlAttribute name in order to apply a given namespace, unless it is the default.

Parameters

self

the GXmlNamespace instance to query

 

Returns

the value of the "prefix" property

Types and Values

GXmlNamespace

typedef struct _GXmlNamespace GXmlNamespace;

Interface to handle XML Namespaces.

Basic information for a XML document's namespaces and applied to a given GXmlNode.

Namespace management is a matter of this or other libraries, implementing this interfaces.


struct GXmlNamespaceIface

struct GXmlNamespaceIface {
	GTypeInterface parent_iface;
	gchar* (*get_uri) (GXmlNamespace* self);
	gchar* (*get_prefix) (GXmlNamespace* self);
};

Interface for creating GXmlNamespace implementations.

Members

GTypeInterface parent_iface;

the parent interface structure

 

get_uri ()

getter method for the abstract property "uri"

 

get_prefix ()

getter method for the abstract property "prefix"