Top | ![]() |
![]() |
![]() |
![]() |
GXmlParserGXmlParser — XML parser engine for GXmlDomDocument implementations. |
void | gxml_parser_write_file () |
gchar * | gxml_parser_write_string () |
void | gxml_parser_write_stream () |
void | gxml_parser_read_file () |
void | gxml_parser_read_stream () |
void | gxml_parser_read_string () |
gboolean | gxml_parser_get_backup () |
void | gxml_parser_set_backup () |
gboolean | gxml_parser_get_indent () |
void | gxml_parser_set_indent () |
GXmlDomNode * | gxml_parser_get_node () |
void gxml_parser_write_file (GXmlParser *self
,GFile *file
,GCancellable *cancellable
,GError **error
);
Writes a GXmlDomDocument to a GFile
self |
the GXmlParser instance |
|
file |
|
|
cancellable |
|
|
error |
location to store the error occuring, or |
gchar * gxml_parser_write_string (GXmlParser *self
,GError **error
);
Writes a GXmlDomDocument to a string
self |
the GXmlParser instance |
|
error |
location to store the error occuring, or |
void gxml_parser_write_stream (GXmlParser *self
,GOutputStream *stream
,GCancellable *cancellable
,GError **error
);
Writes a GXmlDomDocument to a GOutputStream
self |
the GXmlParser instance |
|
stream |
|
|
cancellable |
|
|
error |
location to store the error occuring, or |
void gxml_parser_read_file (GXmlParser *self
,GFile *file
,GCancellable *cancellable
,GError **error
);
Writes a GXmlDomDocument to a GOutputStream
self |
the GXmlParser instance |
|
file |
|
|
cancellable |
|
|
error |
location to store the error occuring, or |
void gxml_parser_read_stream (GXmlParser *self
,GInputStream *stream
,GCancellable *cancellable
,GError **error
);
Read a GXmlDomDocument from a GInputStream
self |
the GXmlParser instance |
|
stream |
|
|
cancellable |
|
|
error |
location to store the error occuring, or |
void gxml_parser_read_string (GXmlParser *self
,const gchar *str
,GCancellable *cancellable
,GError **error
);
Read a GXmlDomDocument from a GFile
self |
the GXmlParser instance |
|
str |
|
|
cancellable |
|
|
error |
location to store the error occuring, or |
gboolean
gxml_parser_get_backup (GXmlParser *self
);
Get and return the current value of the "backup" property.
Controls if, when writing to a file, a backup should be created.
void gxml_parser_set_backup (GXmlParser *self
,gboolean value
);
Set the value of the "backup" property to value
.
Controls if, when writing to a file, a backup should be created.
gboolean
gxml_parser_get_indent (GXmlParser *self
);
Get and return the current value of the "indent" property.
Controls if, when writing, identation should be used.
void gxml_parser_set_indent (GXmlParser *self
,gboolean value
);
Set the value of the "indent" property to value
.
Controls if, when writing, identation should be used.
GXmlDomNode *
gxml_parser_get_node (GXmlParser *self
);
Get and return the current value of the "node" property.
A GXmlDomDocument to read to or write from
typedef struct _GXmlParser GXmlParser;
XML parser engine for GXmlDomDocument implementations.
struct GXmlParserIface { GTypeInterface parent_iface; void (*write_file) (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error); gchar* (*write_string) (GXmlParser* self, GError** error); void (*write_stream) (GXmlParser* self, GOutputStream* stream, GCancellable* cancellable, GError** error); void (*read_file) (GXmlParser* self, GFile* file, GCancellable* cancellable, GError** error); void (*read_stream) (GXmlParser* self, GInputStream* stream, GCancellable* cancellable, GError** error); void (*read_string) (GXmlParser* self, const gchar* str, GCancellable* cancellable, GError** error); gboolean (*get_backup) (GXmlParser* self); void (*set_backup) (GXmlParser* self, gboolean value); gboolean (*get_indent) (GXmlParser* self); void (*set_indent) (GXmlParser* self, gboolean value); GXmlDomNode* (*get_node) (GXmlParser* self); };
Interface for creating GXmlParser implementations.
the parent interface structure |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
getter method for the abstract property "backup" |
||
setter method for the abstract property "backup" |
||
getter method for the abstract property "indent" |
||
setter method for the abstract property "indent" |
||
getter method for the abstract property "node" |