libdom
|
#include <assert.h>
#include <stdlib.h>
#include "core/string.h"
#include "core/document_type.h"
#include "core/namednodemap.h"
#include "core/node.h"
#include "utils/utils.h"
#include "utils/namespace.h"
Classes | |
struct | dom_document_type |
dom_exception _dom_document_type_create | ( | dom_string * | qname, |
dom_string * | public_id, | ||
dom_string * | system_id, | ||
dom_document_type ** | doctype ) |
Create a document type node
qname | The qualified name of the document type |
public_id | The external subset public identifier |
system_id | The external subset system identifier |
alloc | Memory (de)allocation function |
pw | Pointer to client-specific private data |
doctype | Pointer to location to receive result |
The doctype will be referenced, so the client need not do so explicitly. The client must unref the doctype once it has finished with it.
void _dom_document_type_destroy | ( | dom_node_internal * | doctypenode | ) |
Destroy a DocumentType node
doctype | The DocumentType node to destroy |
The contents of ::doctype will be destroyed and ::doctype will be freed.
void _dom_document_type_finalise | ( | dom_document_type * | doctype | ) |
dom_exception _dom_document_type_get_entities | ( | dom_document_type * | doc_type, |
dom_namednodemap ** | result ) |
Retrieve a document type's entities
doc_type | Document type to retrieve entities from |
result | Pointer to location to receive result |
The returned map will have its reference count increased. It is the responsibility of the caller to unref the map once it has finished with it.
We don't support this API now, so this function call should always return DOM_NOT_SUPPORTED_ERR.
dom_exception _dom_document_type_get_internal_subset | ( | dom_document_type * | doc_type, |
dom_string ** | result ) |
Retrieve a document type's internal subset
doc_type | Document type to retrieve internal subset from |
result | Pointer to location to receive result |
The returned string will have its reference count increased. It is the responsibility of the caller to unref the string once it has finished with it.
We don't support this API now, so this function call should always return DOM_NOT_SUPPORTED_ERR.
dom_exception _dom_document_type_get_name | ( | dom_document_type * | doc_type, |
dom_string ** | result ) |
Retrieve a document type's name
doc_type | Document type to retrieve name from |
result | Pointer to location to receive result |
The returned string will have its reference count increased. It is the responsibility of the caller to unref the string once it has finished with it.
We don't support this API now, so this function call should always return DOM_NOT_SUPPORTED_ERR.
dom_exception _dom_document_type_get_notations | ( | dom_document_type * | doc_type, |
dom_namednodemap ** | result ) |
Retrieve a document type's notations
doc_type | Document type to retrieve notations from |
result | Pointer to location to receive result |
The returned map will have its reference count increased. It is the responsibility of the caller to unref the map once it has finished with it.
We don't support this API now, so this function call should always return DOM_NOT_SUPPORTED_ERR.
dom_exception _dom_document_type_get_public_id | ( | dom_document_type * | doc_type, |
dom_string ** | result ) |
Retrieve a document type's public id
doc_type | Document type to retrieve public id from |
result | Pointer to location to receive result |
The returned string will have its reference count increased. It is the responsibility of the caller to unref the string once it has finished with it.
dom_exception _dom_document_type_get_system_id | ( | dom_document_type * | doc_type, |
dom_string ** | result ) |
Retrieve a document type's system id
doc_type | Document type to retrieve system id from |
result | Pointer to location to receive result |
The returned string will have its reference count increased. It is the responsibility of the caller to unref the string once it has finished with it.
dom_exception _dom_document_type_get_text_content | ( | dom_node_internal * | node, |
dom_string ** | result ) |
dom_exception _dom_document_type_initialise | ( | dom_document_type * | doctype, |
dom_string * | qname, | ||
dom_string * | public_id, | ||
dom_string * | system_id ) |
dom_exception _dom_document_type_set_text_content | ( | dom_node_internal * | node, |
dom_string * | content ) |
dom_exception _dom_dt_copy | ( | dom_node_internal * | old, |
dom_node_internal ** | copy ) |
void _dom_dt_destroy | ( | dom_node_internal * | node | ) |