Configuration 4 GNU (CFG)


XMLNode

PrevNext

Name

XMLNode -- A node that uses XML as a data store.

Synopsis



#define     XMLNODE                         (obj)
#define     XMLNODE_CLASS                   (klass)
#define     IS_XMLNODE                      (obj)
#define     IS_XMLNODE_CLASS                (obj)
#define     XMLNODE_GET_CLASS               (obj)
GType       xmlnode_get_type                (void);
GList*      xmlnode_create_from_xml         (xmlNodePtr nodeptr);
GType       xmlnode_load_derived_type       (const char *node_type,
                                             const char *uri);
GType       xmlnode_get_derived_type        (const char *node_type,
                                             const char *uri);

Object Hierarchy


  GObject
   +----Node
         +----XMLNode

Properties


  "xmlnode"              gpointer             : Read / Write

Description

Details

XMLNODE()

#define XMLNODE(obj)      (G_TYPE_CHECK_INSTANCE_CAST ((obj), xmlnode_get_type(), XMLNode))

obj : 

XMLNODE_CLASS()

#define XMLNODE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), xmlnode_get_type(), XMLNodeClass))

klass : 

IS_XMLNODE()

#define IS_XMLNODE(obj)      (G_TYPE_CHECK_INSTANCE_TYPE ((obj), xmlnode_get_type()))

obj : 

IS_XMLNODE_CLASS()

#define IS_XMLNODE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), xmlnode_get_type()))

obj : 

XMLNODE_GET_CLASS()

#define XMLNODE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), xmlnode_get_type(), XMLNodeClass))

obj : 

xmlnode_get_type ()

GType       xmlnode_get_type                (void);

Registers the XMLNode type if necessary.

Returns : the GObject type identifier for the XMLNode class.

xmlnode_create_from_xml ()

GList*      xmlnode_create_from_xml         (xmlNodePtr nodeptr);

Creates an XMLNode or XMLProperty for every element within the specified xml node.

nodeptr : pointer to XML tree that defines this node
Returns : a GList containing XMLNode's and XMLProperty's for every element. The caller should use g_object_ref() on each object if necessary.

xmlnode_load_derived_type ()

GType       xmlnode_load_derived_type       (const char *node_type,
                                             const char *uri);

Creates a new GObject class for the specified node type. This function assumes that the node type is not already loaded, so users should use xmlnode_get_derived_type() instead. The class definition file for the specified node type is loaded and parsed. The node is created as a subtype of the node type that the new class "extends."

node_type : the type of the node to load
uri : the uri, or NULL
Returns : The GObject type identifier for the new node class.

xmlnode_get_derived_type ()

GType       xmlnode_get_derived_type        (const char *node_type,
                                             const char *uri);

Only calls xmlnode_load_derived_type() if the node type has not been loaded.

node_type : specifies the type of the node.
uri : specifies a URI namespace; for now, should be NULL.
Returns : the GObject identifier for the specified node class.

Properties

"xmlnode" (gpointer : Read / Write)

A pointer of type xmlNodePtr that specifies the location in an XML tree that contains the current node. In the case of XMLFileNode, this pointer points into the parent document (e.g. config4gnu.xml).

PrevHomeNext
XMLFileNodeUpXMLProperty

SourceForge Logo