GXmlGDocument

GXmlGDocument — Class implemeting GXmlDocument interface, not tied to libxml-2.0 library.

Functions

Types and Values

Description

This class use xmlTextWriter to write down XML documents using its contained GXmlNode children or other XML structures.

Functions

gxml_gdocument_libxml_to_string ()

gchar *
gxml_gdocument_libxml_to_string (GXmlGDocument *self);

Uses libxml2 internal dump to memory function over owned

Parameters

self

the GXmlGDocument instance

 

gxml_gdocument_save ()

gboolean
gxml_gdocument_save (GXmlGDocument *self,
                     GCancellable *cancellable,
                     GError **error);

Parameters

self

the GXmlGDocument instance

 

cancellable

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_gdocument_save_as ()

gboolean
gxml_gdocument_save_as (GXmlGDocument *self,
                        GFile *f,
                        GCancellable *cancellable,
                        GError **error);

Parameters

self

the GXmlGDocument instance

 

f

 

 

cancellable

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_gdocument_new ()

GXmlGDocument *
gxml_gdocument_new (void);

gxml_gdocument_new_from_path ()

GXmlGDocument *
gxml_gdocument_new_from_path (const gchar *path,
                              gint options,
                              GError **error);

Parameters

path

 

 

options

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_gdocument_new_from_uri ()

GXmlGDocument *
gxml_gdocument_new_from_uri (const gchar *uri,
                             gint options,
                             GError **error);

Parameters

uri

 

 

options

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_gdocument_new_from_file ()

GXmlGDocument *
gxml_gdocument_new_from_file (GFile *file,
                              gint options,
                              GCancellable *cancel,
                              GError **error);

Parameters

file

 

 

options

 

 

cancel

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_gdocument_new_from_string ()

GXmlGDocument *
gxml_gdocument_new_from_string (const gchar *str,
                                gint options,
                                GError **error);

Parameters

str

 

 

options

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_gdocument_new_from_stream ()

GXmlGDocument *
gxml_gdocument_new_from_stream (GInputStream *istream,
                                GError **error);

Parameters

istream

 

 

error

location to store the error occuring, or NULL to ignore

 

gxml_gdocument_new_from_doc ()

GXmlGDocument *
gxml_gdocument_new_from_doc (xmlDoc *doc);

Parameters

doc

 

 

gxml_gimplementation_new ()

GXmlGImplementation *
gxml_gimplementation_new (void);

gxml_gdocument_type_new_with_name ()

GXmlGDocumentType *
gxml_gdocument_type_new_with_name (const gchar *name);

Parameters

name

 

 

gxml_gdocument_type_new_with_ids ()

GXmlGDocumentType *
gxml_gdocument_type_new_with_ids (const gchar *name,
                                  const gchar *public_id,
                                  const gchar *system_id);

Parameters

name

 

 

public_id

 

 

system_id

 

 

gxml_gdocument_type_new ()

GXmlGDocumentType *
gxml_gdocument_type_new (void);

gxml_gdocument_fragment_new ()

GXmlGDocumentFragment *
gxml_gdocument_fragment_new (GXmlGDocument *d);

Parameters

d

 

 

gxml_gdom_node_iterator_new ()

GXmlGDomNodeIterator *
gxml_gdom_node_iterator_new (GXmlDomNode *n,
                             gulong what_to_show,
                             GXmlDomNodeFilter *filter);

Parameters

n

 

 

what_to_show

 

 

filter

 

 

gxml_gdom_tree_walker_new ()

GXmlGDomTreeWalker *
gxml_gdom_tree_walker_new (GXmlDomNode *r,
                           gulong w,
                           GXmlDomNodeFilter *f);

Parameters

r

 

 

w

 

 

f

 

 

Types and Values

GXML_TYPE_GDOCUMENT

#define GXML_TYPE_GDOCUMENT (gxml_gdocument_get_type ())

The type for GXmlGDocument.


struct GXmlGDocument

struct GXmlGDocument {
	GXmlGNode parent_instance;
	GXmlGDocumentPrivate * priv;
	xmlDoc* doc;
	xmlBuffer* _buffer;
	GXmlImplementation* _implementation;
	gchar* _url;
	gchar* _origin;
	gchar* _compat_mode;
	gchar* _character_set;
	gchar* _content_type;
	GXmlDomEvent* _constructor;
};

Class implemeting GXmlDocument interface, not tied to libxml-2.0 library.

This class use xmlTextWriter to write down XML documents using its contained GXmlNode children or other XML structures.


struct GXmlGDocumentClass

struct GXmlGDocumentClass {
	GXmlGNodeClass parent_class;
	gboolean (*save) (GXmlGDocument* self, GCancellable* cancellable, GError** error);
	gboolean (*save_as) (GXmlGDocument* self, GFile* f, GCancellable* cancellable, GError** error);
};

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

Members

save ()

virtual method called by gxml_gdocument_save()

 

save_as ()

virtual method called by gxml_gdocument_save_as()

 

GXML_TYPE_GIMPLEMENTATION

#define GXML_TYPE_GIMPLEMENTATION (gxml_gimplementation_get_type ())

The type for GXmlGImplementation.


struct GXmlGImplementation

struct GXmlGImplementation {
	GObject parent_instance;
	GXmlGImplementationPrivate * priv;
};

struct GXmlGImplementationClass

struct GXmlGImplementationClass {
	GObjectClass parent_class;
};

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

Members


GXML_TYPE_GDOCUMENT_TYPE

#define GXML_TYPE_GDOCUMENT_TYPE (gxml_gdocument_type_get_type ())

The type for GXmlGDocumentType.


struct GXmlGDocumentType

struct GXmlGDocumentType {
	GXmlGChildNode parent_instance;
	GXmlGDocumentTypePrivate * priv;
	gchar* _name;
	gchar* _public_id;
	gchar* _system_id;
};

struct GXmlGDocumentTypeClass

struct GXmlGDocumentTypeClass {
	GXmlGChildNodeClass parent_class;
};

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

Members


GXML_TYPE_GDOCUMENT_FRAGMENT

#define GXML_TYPE_GDOCUMENT_FRAGMENT (gxml_gdocument_fragment_get_type ())

The type for GXmlGDocumentFragment.


struct GXmlGDocumentFragment

struct GXmlGDocumentFragment {
	GXmlGDocument parent_instance;
	GXmlGDocumentFragmentPrivate * priv;
};

struct GXmlGDocumentFragmentClass

struct GXmlGDocumentFragmentClass {
	GXmlGDocumentClass parent_class;
};

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

Members


GXML_TYPE_GDOM_NODE_ITERATOR

#define GXML_TYPE_GDOM_NODE_ITERATOR (gxml_gdom_node_iterator_get_type ())

The type for GXmlGDomNodeIterator.


struct GXmlGDomNodeIterator

struct GXmlGDomNodeIterator {
	GObject parent_instance;
	GXmlGDomNodeIteratorPrivate * priv;
	GXmlDomNode* _root;
	GXmlDomNode* _reference_node;
	gboolean _pointer_before_reference_node;
	gulong _what_to_show;
	GXmlDomNodeFilter* _filter;
};

struct GXmlGDomNodeIteratorClass

struct GXmlGDomNodeIteratorClass {
	GObjectClass parent_class;
};

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

Members


GXML_TYPE_GDOM_TREE_WALKER

#define GXML_TYPE_GDOM_TREE_WALKER (gxml_gdom_tree_walker_get_type ())

The type for GXmlGDomTreeWalker.


struct GXmlGDomTreeWalker

struct GXmlGDomTreeWalker {
	GObject parent_instance;
	GXmlGDomTreeWalkerPrivate * priv;
	GXmlDomNode* _root;
	gulong _what_to_show;
	GXmlDomNodeFilter* _filter;
	GXmlDomNode* _current_node;
};

struct GXmlGDomTreeWalkerClass

struct GXmlGDomTreeWalkerClass {
	GObjectClass parent_class;
};

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

Members