#include <stdlib.h>
#include "core/document.h"
#include "core/entity_ref.h"
#include "core/node.h"
#include "utils/utils.h"
◆ _dom_entity_reference_create()
Create an entity reference
- Parameters
-
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 |
- Returns
- DOM_NO_ERR on success, DOM_NO_MEM_ERR on memory exhaustion.
::doc, ::name and ::value will have their reference counts increased.
The returned node will already be referenced.
◆ _dom_entity_reference_destroy()
Destroy an entity reference
- Parameters
-
entity | The entity reference to destroy |
The contents of ::entity will be destroyed and ::entity will be freed.
◆ _dom_entity_reference_get_textual_representation()
Get the textual representation of an EntityRererence
- Parameters
-
entity | The entity reference to get the textual representation of |
result | Pointer to location to receive result |
- Returns
- DOM_NO_ERR on success.
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_er_copy()
◆ _dom_er_destroy()