|
XenevaOS
|
#include <stdlib.h>#include "core/document.h"#include "core/entity_ref.h"#include "core/node.h"#include "utils/utils.h"
Classes | |
| struct | dom_entity_reference |
Functions | |
| dom_exception | _dom_entity_reference_create (dom_document *doc, dom_string *name, dom_string *value, dom_entity_reference **result) |
| void | _dom_entity_reference_destroy (dom_entity_reference *entity) |
| dom_exception | _dom_entity_reference_get_textual_representation (dom_entity_reference *entity, dom_string **result) |
| void | _dom_er_destroy (dom_node_internal *node) |
| dom_exception | _dom_er_copy (dom_node_internal *old, dom_node_internal **copy) |
| dom_exception _dom_entity_reference_create | ( | dom_document * | doc, |
| dom_string * | name, | ||
| dom_string * | value, | ||
| dom_entity_reference ** | result | ||
| ) |
Create an entity reference
| 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_entity_reference_destroy | ( | dom_entity_reference * | entity | ) |
Destroy an entity reference
| entity | The entity reference to destroy |
The contents of ::entity will be destroyed and ::entity will be freed.
| dom_exception _dom_entity_reference_get_textual_representation | ( | dom_entity_reference * | entity, |
| dom_string ** | result | ||
| ) |
Get the textual representation of an EntityRererence
| entity | The entity reference to get the textual representation of |
| result | Pointer to location to receive result |
The returned string will have its reference count increased. It is the responsibility of the caller to unrer the string once it has finished with it.
| dom_exception _dom_er_copy | ( | dom_node_internal * | old, |
| dom_node_internal ** | copy | ||
| ) |
| void _dom_er_destroy | ( | dom_node_internal * | node | ) |