GdomeDocumentType

Name

GdomeDocumentType -- Interface DocumentType implementation.

Synopsis



struct      GdomeDocumentType;
GdomeDOMString* gdome_dt_name               (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNamedNodeMap* gdome_dt_entities        (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNamedNodeMap* gdome_dt_notations       (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeDOMString* gdome_dt_publicId           (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeDOMString* gdome_dt_systemId           (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeDOMString* gdome_dt_internalSubset     (GdomeDocumentType *self,
                                             GdomeException *exc);
void        gdome_dt_ref                    (GdomeDocumentType *self,
                                             GdomeException *exc);
void        gdome_dt_unref                  (GdomeDocumentType *self,
                                             GdomeException *exc);
gpointer    gdome_dt_query_interface        (GdomeDocumentType *self,
                                             const char *interface,
                                             GdomeException *exc);
GdomeDOMString* gdome_dt_nodeName           (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeDOMString* gdome_dt_nodeValue          (GdomeDocumentType *self,
                                             GdomeException *exc);
void        gdome_dt_set_nodeValue          (GdomeDocumentType *self,
                                             GdomeDOMString *nodeValue,
                                             GdomeException *exc);
unsigned short gdome_dt_nodeType            (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_parentNode             (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNodeList* gdome_dt_childNodes          (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_firstChild             (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_lastChild              (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_previousSibling        (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_nextSibling            (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNamedNodeMap* gdome_dt_attributes      (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeDocument* gdome_dt_ownerDocument       (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_insertBefore           (GdomeDocumentType *self,
                                             GdomeNode *newChild,
                                             GdomeNode *refChild,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_replaceChild           (GdomeDocumentType *self,
                                             GdomeNode *newChild,
                                             GdomeNode *oldChild,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_removeChild            (GdomeDocumentType *self,
                                             GdomeNode *oldChild,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_appendChild            (GdomeDocumentType *self,
                                             GdomeNode *newChild,
                                             GdomeException *exc);
GdomeBoolean gdome_dt_hasChildNodes         (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeNode*  gdome_dt_cloneNode              (GdomeDocumentType *self,
                                             GdomeBoolean deep,
                                             GdomeException *exc);
void        gdome_dt_normalize              (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeBoolean gdome_dt_isSupported           (GdomeDocumentType *self,
                                             GdomeDOMString *feature,
                                             GdomeDOMString *version,
                                             GdomeException *exc);
GdomeDOMString* gdome_dt_namespaceURI       (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeDOMString* gdome_dt_prefix             (GdomeDocumentType *self,
                                             GdomeException *exc);
void        gdome_dt_set_prefix             (GdomeDocumentType *self,
                                             GdomeDOMString *prefix,
                                             GdomeException *exc);
GdomeDOMString* gdome_dt_localName          (GdomeDocumentType *self,
                                             GdomeException *exc);
GdomeBoolean gdome_dt_hasAttributes         (GdomeDocumentType *self,
                                             GdomeException *exc);
void        gdome_dt_addEventListener       (GdomeDocumentType *self,
                                             GdomeDOMString *type,
                                             GdomeEventListener *listener,
                                             GdomeBoolean useCapture,
                                             GdomeException *exc);
void        gdome_dt_removeEventListener    (GdomeDocumentType *self,
                                             GdomeDOMString *type,
                                             GdomeEventListener *listener,
                                             GdomeBoolean useCapture,
                                             GdomeException *exc);
GdomeBoolean gdome_dt_dispatchEvent         (GdomeDocumentType *self,
                                             GdomeEvent *evt,
                                             GdomeException *exc);
void        gdome_dt_subTreeDispatchEvent   (GdomeDocumentType *self,
                                             GdomeEvent *evt,
                                             GdomeException *exc);
GdomeBoolean gdome_dt_canAppend             (GdomeDocumentType *self,
                                             GdomeNode *newChild,
                                             GdomeException *exc);

Description

Each GdomeDocument has a gdome_doc_doctype() method whose value is either NULL or a GdomeDocumentType object. The GdomeDocumentType interface in the DOM Core provides an interface to the list of entities that are defined for the document, and little else because the effect of namespaces and the various XML schema efforts on DTD representation are not clearly understood as of writing DOM level 2 specifications.

Note: The DOM Level 2 doesn't support editing GdomeDocumentType nodes.

Details

struct GdomeDocumentType

struct GdomeDocumentType {
	gpointer user_data;
};


gdome_dt_name ()

GdomeDOMString* gdome_dt_name               (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_entities ()

GdomeNamedNodeMap* gdome_dt_entities        (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_notations ()

GdomeNamedNodeMap* gdome_dt_notations       (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_publicId ()

GdomeDOMString* gdome_dt_publicId           (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_systemId ()

GdomeDOMString* gdome_dt_systemId           (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_internalSubset ()

GdomeDOMString* gdome_dt_internalSubset     (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_ref ()

void        gdome_dt_ref                    (GdomeDocumentType *self,
                                             GdomeException *exc);

Increase the reference count of the specified Node.


gdome_dt_unref ()

void        gdome_dt_unref                  (GdomeDocumentType *self,
                                             GdomeException *exc);

Decrease the reference count of the specified Node. Free the Node structure if the Node will have zero reference.


gdome_dt_query_interface ()

gpointer    gdome_dt_query_interface        (GdomeDocumentType *self,
                                             const char *interface,
                                             GdomeException *exc);


gdome_dt_nodeName ()

GdomeDOMString* gdome_dt_nodeName           (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_nodeValue ()

GdomeDOMString* gdome_dt_nodeValue          (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_set_nodeValue ()

void        gdome_dt_set_nodeValue          (GdomeDocumentType *self,
                                             GdomeDOMString *nodeValue,
                                             GdomeException *exc);

Sets The value of this node, depending on its type.

GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.


gdome_dt_nodeType ()

unsigned short gdome_dt_nodeType            (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_parentNode ()

GdomeNode*  gdome_dt_parentNode             (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_childNodes ()

GdomeNodeList* gdome_dt_childNodes          (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_firstChild ()

GdomeNode*  gdome_dt_firstChild             (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_lastChild ()

GdomeNode*  gdome_dt_lastChild              (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_previousSibling ()

GdomeNode*  gdome_dt_previousSibling        (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_nextSibling ()

GdomeNode*  gdome_dt_nextSibling            (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_attributes ()

GdomeNamedNodeMap* gdome_dt_attributes      (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_ownerDocument ()

GdomeDocument* gdome_dt_ownerDocument       (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_insertBefore ()

GdomeNode*  gdome_dt_insertBefore           (GdomeDocumentType *self,
                                             GdomeNode *newChild,
                                             GdomeNode *refChild,
                                             GdomeException *exc);

Inserts the node newChild before the existing child node refChild. If refChild is NULL, insert newChild at the end of the list of children. If newChild is a DocumentFragment node, all of its children are inserted, in the same order, before refChild. If the newChild is already in the tree, it is first removed.

GDOME_HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to insert is one of this node's ancestors or this node itself. GDOME_WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. GDOME_NOT_FOUND_ERR: Raised if refChild is not a child of this node. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.


gdome_dt_replaceChild ()

GdomeNode*  gdome_dt_replaceChild           (GdomeDocumentType *self,
                                             GdomeNode *newChild,
                                             GdomeNode *oldChild,
                                             GdomeException *exc);

Replaces the child node oldChild with newChild in the list of children, and returns the oldChild node. If newChild is a DocumentFragment object, oldChild is replaced by all of the DocumentFragment children, which are inserted in the same order. If the newChild is already in the tree, it is first removed.

GDOME_HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to put in is one of this node's ancestors or this node itself. GDOME_WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. GDOME_NOT_FOUND_ERR: Raised if oldChild is not a child of this node. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.


gdome_dt_removeChild ()

GdomeNode*  gdome_dt_removeChild            (GdomeDocumentType *self,
                                             GdomeNode *oldChild,
                                             GdomeException *exc);

Removes the child node indicated by oldChild from the list of children, and returns it.

GDOME_NOT_FOUND_ERR: Raised if oldChild is not a child of this node. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.


gdome_dt_appendChild ()

GdomeNode*  gdome_dt_appendChild            (GdomeDocumentType *self,
                                             GdomeNode *newChild,
                                             GdomeException *exc);

Adds the node newChild to the end of the list of children of this node. If the newChild is already in the tree, it is first removed. If it is a DocumentFragment node, the entire contents of the document fragment are moved into the child list of this node

GDOME_HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does not allow children of the type of the newChild node, or if the node to append is one of this node's ancestors or this node itself. GDOME_WRONG_DOCUMENT_ERR: Raised if newChild was created from a different document than the one that created this node. GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.


gdome_dt_hasChildNodes ()

GdomeBoolean gdome_dt_hasChildNodes         (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_cloneNode ()

GdomeNode*  gdome_dt_cloneNode              (GdomeDocumentType *self,
                                             GdomeBoolean deep,
                                             GdomeException *exc);

Makes a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent; (parentNode is NULL). GDOME_DOCUMENT_TYPE_NODE, GDOME_NOTATION_NODE and GDOME_ENTITY_NODE nodes are not supported.

GDOME_NOT_SUPPORTED_ERR: Raised if the type of node being cloned is not supported.


gdome_dt_normalize ()

void        gdome_dt_normalize              (GdomeDocumentType *self,
                                             GdomeException *exc);

Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes.


gdome_dt_isSupported ()

GdomeBoolean gdome_dt_isSupported           (GdomeDocumentType *self,
                                             GdomeDOMString *feature,
                                             GdomeDOMString *version,
                                             GdomeException *exc);

Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.


gdome_dt_namespaceURI ()

GdomeDOMString* gdome_dt_namespaceURI       (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_prefix ()

GdomeDOMString* gdome_dt_prefix             (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_set_prefix ()

void        gdome_dt_set_prefix             (GdomeDocumentType *self,
                                             GdomeDOMString *prefix,
                                             GdomeException *exc);

Sets a new nemaspace prefix for this node.

GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. GDOME_NAMESPACE_ERR: Raised if the specified prefix is malformed per the Namespaces in XML specification, if the namespaceURI of this node is NULL, if the specified prefix is "xml" and the namespaceURI of this node is different from "http://www.w3.org/XML/1998/namespace", if this node is an attribute and the specified prefix is "xmlns" and the namespaceURI of this node is different from "http://www.w3.org/2000/xmlns/", or if this node is an attribute and the qualifiedName of this node is "xmlns".


gdome_dt_localName ()

GdomeDOMString* gdome_dt_localName          (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_hasAttributes ()

GdomeBoolean gdome_dt_hasAttributes         (GdomeDocumentType *self,
                                             GdomeException *exc);


gdome_dt_addEventListener ()

void        gdome_dt_addEventListener       (GdomeDocumentType *self,
                                             GdomeDOMString *type,
                                             GdomeEventListener *listener,
                                             GdomeBoolean useCapture,
                                             GdomeException *exc);

This method allows the registration of event listeners on the event target. If an EventListener is added to an EventTarget while it is processing an event, it will not be triggered by the current actions but may be triggered during a later stage of event flow, such as the bubbling phase. If multiple identical EventListeners are registered on the same EventTarget with the same parameters the duplicate instances are discarded. They do not cause the EventListener to be called twice and since they are discarded they do not need to be removed with the removeEventListener method.


gdome_dt_removeEventListener ()

void        gdome_dt_removeEventListener    (GdomeDocumentType *self,
                                             GdomeDOMString *type,
                                             GdomeEventListener *listener,
                                             GdomeBoolean useCapture,
                                             GdomeException *exc);

This method allows the removal of event listeners from the event target. If an EventListener is removed from an EventTarget while it is processing an event, it will not be triggered by the current actions. EventListeners can never be invoked after being removed. Calling removeEventListener with arguments which do not identify any currently registered EventListener on the EventTarget has no effect.


gdome_dt_dispatchEvent ()

GdomeBoolean gdome_dt_dispatchEvent         (GdomeDocumentType *self,
                                             GdomeEvent *evt,
                                             GdomeException *exc);

This method allows the dispatch of events into the implementations event model. Events dispatched in this manner will have the same capturing and bubbling behavior as events dispatched directly by the implementation. The target of the event is the EventTarget on which dispatchEvent is called.

GDOME_UNSPECIFIED_EVENT_TYPE_ERR: Raised if the Event's type was not specified by initializing the event before dispatchEvent was called. Specification of the Event's type as NULL or an empty string will also trigger this exception.


gdome_dt_subTreeDispatchEvent ()

void        gdome_dt_subTreeDispatchEvent   (GdomeDocumentType *self,
                                             GdomeEvent *evt,
                                             GdomeException *exc);

This method allows the dispatch of events into the implementations event model. Events dispatched in this manner will have the same capturing and bubbling behavior as events dispatched directly by the implementation. The target of the event is any nodes in the subtree of the EventTarget on which dispatchEvent is called.

GDOME_UNSPECIFIED_EVENT_TYPE_ERR: Raised if the Event's type was not specified by initializing the event before dispatchEvent was called. Specification of the Event's type as NULL or an empty string will also trigger this exception.


gdome_dt_canAppend ()

GdomeBoolean gdome_dt_canAppend             (GdomeDocumentType *self,
                                             GdomeNode *newChild,
                                             GdomeException *exc);

Tests if a newChild can be added in the child list of this node.