#include <stdlib.h>
#include "core/document.h"
#include "core/node.h"
#include "core/pi.h"
#include "utils/utils.h"
◆ _dom_pi_copy()
◆ _dom_pi_destroy()
◆ _dom_processing_instruction_create()
Create a processing instruction
- 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_processing_instruction_destroy()
Destroy a processing instruction
- Parameters
-
pi | The processing instruction to destroy |
The contents of ::pi will be destroyed and ::pi will be freed.