|
XenevaOS
|
#include <stdlib.h>#include "core/document.h"#include "core/node.h"#include "core/pi.h"#include "utils/utils.h"
Classes | |
| struct | dom_processing_instruction |
Functions | |
| dom_exception | _dom_processing_instruction_create (dom_document *doc, dom_string *name, dom_string *value, dom_processing_instruction **result) |
| void | _dom_processing_instruction_destroy (dom_processing_instruction *pi) |
| void | _dom_pi_destroy (dom_node_internal *node) |
| dom_exception | _dom_pi_copy (dom_node_internal *old, dom_node_internal **copy) |
| dom_exception _dom_pi_copy | ( | dom_node_internal * | old, |
| dom_node_internal ** | copy | ||
| ) |
| void _dom_pi_destroy | ( | dom_node_internal * | node | ) |
| dom_exception _dom_processing_instruction_create | ( | dom_document * | doc, |
| dom_string * | name, | ||
| dom_string * | value, | ||
| dom_processing_instruction ** | result | ||
| ) |
Create a processing instruction
| 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_processing_instruction_destroy | ( | dom_processing_instruction * | pi | ) |
Destroy a processing instruction
| pi | The processing instruction to destroy |
The contents of pi will be destroyed and pi will be freed.