|
libdom
|
#include <stdlib.h>#include <dom/core/node.h>#include "core/document.h"#include "core/doc_fragment.h"#include "core/node.h"#include "utils/utils.h"Classes | |
| struct | dom_document_fragment |
Functions | |
| dom_exception | _dom_document_fragment_create (dom_document *doc, dom_string *name, dom_string *value, dom_document_fragment **result) |
| void | _dom_document_fragment_destroy (dom_document_fragment *frag) |
| void | _dom_df_destroy (dom_node_internal *node) |
| dom_exception | _dom_df_copy (dom_node_internal *old, dom_node_internal **copy) |
| dom_exception _dom_df_copy | ( | dom_node_internal * | old, |
| dom_node_internal ** | copy | ||
| ) |
| void _dom_df_destroy | ( | dom_node_internal * | node | ) |
| dom_exception _dom_document_fragment_create | ( | dom_document * | doc, |
| dom_string * | name, | ||
| dom_string * | value, | ||
| dom_document_fragment ** | result | ||
| ) |
Create a document fragment
| doc | The owning document |
| name | The name of the node to create |
| value | The text content of the node |
| result | Pointer to location to receive created node |
::doc, ::name and ::value will have their reference counts increased.
The returned node will already be referenced.
| void _dom_document_fragment_destroy | ( | dom_document_fragment * | frag | ) |
Destroy a document fragment
| frag | The document fragment to destroy |
The contents of ::frag will be destroyed and ::frag will be freed.