Top | ![]() |
![]() |
![]() |
![]() |
LsmDomDocument * | (*LsmDomDocumentCreateFunction) () |
LsmDomDocument * | lsm_dom_implementation_create_document () |
void | lsm_dom_implementation_cleanup () |
void | lsm_dom_document_append_from_memory () |
LsmDomDocument * | lsm_dom_document_new_from_memory () |
LsmDomDocument * | lsm_dom_document_new_from_path () |
LsmDomDocument * | lsm_dom_document_new_from_url () |
void | lsm_dom_document_save_to_stream () |
void | lsm_dom_document_save_to_memory () |
void | lsm_dom_document_save_to_path () |
void | lsm_dom_document_save_to_url () |
LsmDomElement * | lsm_dom_document_get_document_element () |
LsmDomElement * | lsm_dom_document_create_element () |
LsmDomText * | lsm_dom_document_create_text_node () |
LsmDomView * | lsm_dom_document_create_view () |
const char * | lsm_dom_document_get_url () |
void | lsm_dom_document_set_url () |
void | lsm_dom_document_set_path () |
void * | lsm_dom_document_get_href_data () |
const char * | lsm_dom_get_entity () |
LsmDomDocument * lsm_dom_implementation_create_document (const char *namespace_uri
,const char *qualified_name
);
void lsm_dom_document_append_from_memory (LsmDomDocument *document
,LsmDomNode *node
,const char *buffer
,gssize size
,GError **error
);
Append a chunk of xml tree to an existing document. The resulting nodes will be appended to
node
, or to document
if node
== NULL.
Size set to -1 indicates the buffer is NULL terminated.
LsmDomDocument * lsm_dom_document_new_from_memory (const char *buffer
,gssize size
,GError **error
);
Create a new document from a memory data buffer.
LsmDomDocument * lsm_dom_document_new_from_path (const char *path
,GError **error
);
Create a new document from the data stored in path
.
LsmDomDocument * lsm_dom_document_new_from_url (const char *url
,GError **error
);
Create a new document from the data stored at url
.
void lsm_dom_document_save_to_stream (LsmDomDocument *document
,GOutputStream *stream
,GError **error
);
Save document
as an xml representation into stream
.
void lsm_dom_document_save_to_memory (LsmDomDocument *document
,char **buffer
,gsize *size
,GError **error
);
Save document
as an xml representation into buffer
.
document |
||
buffer |
placeholder for a pointer to the resulting data buffer. |
[out callee-allocates] |
size |
placeholder for the data size. |
[out][optional] |
error |
placeholder for a GError |
void lsm_dom_document_save_to_path (LsmDomDocument *document
,const char *path
,GError **error
);
Save document
as an xml representation to a file, replacing the already existing file if needed.
void lsm_dom_document_save_to_url (LsmDomDocument *document
,const char *url
,GError **error
);
Save document
as an xml representation to url
, replacing the already existing file if needed.
LsmDomElement *
lsm_dom_document_get_document_element (LsmDomDocument *self
);
Get the child node that is the root element of the document.
LsmDomElement * lsm_dom_document_create_element (LsmDomDocument *self
,const char *tag_name
);
Create a new element node with a type corresponding to tag_name
.
LsmDomText * lsm_dom_document_create_text_node (LsmDomDocument *self
,const char *data
);
Create a text node with data
as its initial content.
LsmDomView *
lsm_dom_document_create_view (LsmDomDocument *self
);
Create a LsmDomView for document rendering.
const char *
lsm_dom_document_get_url (LsmDomDocument *self
);
Get document URL.
void lsm_dom_document_set_path (LsmDomDocument *self
,const char *path
);
void * lsm_dom_document_get_href_data (LsmDomDocument *self
,const char *href
,gsize *size
);