Gdome2 Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up |
struct GdomeProcessingInstruction { const GdomeProcessingInstructionVtab *vtab; /* deprecated */ GdomePrivateList *private; }; |
GdomeDOMString* gdome_pi_target (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeDOMString* gdome_pi_data (GdomeProcessingInstruction *self, GdomeException *exc); |
void gdome_pi_set_data (GdomeProcessingInstruction *self, GdomeDOMString *data, GdomeException *exc); |
Set the content of this processing instruction.
void gdome_pi_ref (GdomeProcessingInstruction *self, GdomeException *exc); |
Increase the reference count of the specified Node.
void gdome_pi_unref (GdomeProcessingInstruction *self, GdomeException *exc); |
Decrease the reference count of the specified Node. Free the Node structure if the Node will have zero reference.
void* gdome_pi_query_interface (GdomeProcessingInstruction *self, const char *interface, GdomeException *exc); |
NOT IMPLEMENTED
GdomeDOMString* gdome_pi_nodeName (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeDOMString* gdome_pi_nodeValue (GdomeProcessingInstruction *self, GdomeException *exc); |
void gdome_pi_set_nodeValue (GdomeProcessingInstruction *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.
unsigned |
GdomeNode* gdome_pi_parentNode (GdomeProcessingInstruction *self, GdomeException *exc); |
self : | Node Object ref |
exc : | Exception Object ref |
Returns : | the parent of this node. All nodes, except Attr, Document, DocumentFragment, Entity, and Notation may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is NULL. |
GdomeNodeList* gdome_pi_childNodes (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeNode* gdome_pi_firstChild (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeNode* gdome_pi_lastChild (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeNode* gdome_pi_previousSibling (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeNode* gdome_pi_nextSibling (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeNamedNodeMap* gdome_pi_attributes (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeDocument* gdome_pi_ownerDocument (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeNode* gdome_pi_insertBefore (GdomeProcessingInstruction *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_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.
GdomeNode* gdome_pi_replaceChild (GdomeProcessingInstruction *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_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.
GdomeNode* gdome_pi_removeChild (GdomeProcessingInstruction *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.
GdomeNode* gdome_pi_appendChild (GdomeProcessingInstruction *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_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.
GdomeBoolean gdome_pi_hasChildNodes (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeNode* gdome_pi_cloneNode (GdomeProcessingInstruction *self, GdomeBoolean deep, GdomeException *exc); |
self : | Node Object ref |
deep : | If true, recursively clone the subtree under the specified node; if false, clone only the node itself (and its attributes, if it is an Element). |
exc : | Exception Object ref |
Returns : | a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent; (parentNode is NULL). |
void gdome_pi_normalize (GdomeProcessingInstruction *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.
GdomeBoolean gdome_pi_isSupported (GdomeProcessingInstruction *self, GdomeDOMString *feature, GdomeDOMString *version, GdomeException *exc); |
Tests whether the DOM implementation implements a specific feature and that feature is supported by this node.
self : | Node Object ref |
feature : | The name of the feature to test. |
version : | This is the version number of the feature to test. In Level 2, version 1, this is the string "2.0". If the version is not specified, supporting any version of the feature will cause the method to return TRUE. |
exc : | Exception Object ref |
Returns : | TRUE if the specified feature is supported on this node, FALSE otherwise. |
GdomeDOMString* gdome_pi_namespaceURI (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeDOMString* gdome_pi_prefix (GdomeProcessingInstruction *self, GdomeException *exc); |
void gdome_pi_set_prefix (GdomeProcessingInstruction *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, 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"
GdomeDOMString* gdome_pi_localName (GdomeProcessingInstruction *self, GdomeException *exc); |
GdomeBoolean gdome_pi_hasAttributes (GdomeProcessingInstruction *self, GdomeException *exc); |
void gdome_pi_addEventListener (GdomeProcessingInstruction *self, GdomeDOMString *type, |
NOT IMPLEMENTED YET
void gdome_pi_removeEventListener (GdomeProcessingInstruction *self, GdomeDOMString *type, |
NOT IMPLEMENTED YET
GdomeBoolean gdome_pi_dispatchEvent (GdomeProcessingInstruction *self, |
NOT IMPLEMENTED YET