Oracle8i Application Developer's Guide - XML Release 3 (8.1.7) Part Number A86030-01 |
Library | Service | Contents | Index

XDK for C: Specifications and Cheat Sheets, 5 of 8

## XML Parser for C: DOM API Functions

Table D-3 lists the XML Parser for C DOM API functions.

##### Table D-3 XML Parser for C: DOM API Functions

Function | Brief Description
--- | ---
appendChild | Append child node to current node
appendData | Append character data to end of node's current data
cloneNode | Create a new node identical to the current one
createAttribute | Create an new attribute for an element node
createCDATASection | Create a CDATA_SECTION node
createComment | Create a COMMENT node
createDocumentFragment | Create a DOCUMENT_FRAGMENT node
createElement | Create an ELEMENT node
createEntityReference | Create an ENTITY_REFERENCE node
createProcessingInstruction | Create a PROCESSING_INSTRUCTION (PI) node
createTextNode | Create a TEXT node
deleteData | Remove substring from a node's character data
getAttrName | Return an attribute's name
getAttrSpecified | Return value of attribute's specified flag [DOM getSpecified]
getAttrValue | Return the value of an attribute
getAttribute | Return the value of an attribute
getAttributeIndex | Return an element's attribute given its index
getAttributeNode | Get an element's attribute node given its name [DOM getName]
getAttributes | Return array of element's attributes
getCharData | Return character data for a TEXT node [DOM getData]
getCharLength | Return length of TEXT node's character data [DOM getLength]
getChildNode | Return indexed node from array of nodes [DOM item]
getChildNodes | Return array of node's children
getContentModel | Returns the content model for an element from the DTD [DOM extension]
getDocument | Return top-level DOCUMENT node [DOM extension]
getDocumentElemen | Return highest-level (root) ELEMENT node
getDocType | Returns current DTD
getDocTypeEntities | Returns array of DTD's general entities
getDocTypeName | Returns name of DTD
getDocTypeNotations | Returns array of DTD's notations
getElementsByTagName | Returns list of elements with matching name
getEntityNotation | Returns an entity's NDATA [DOM getNotation]
getEntityPubID | Returns an entity's public ID [DOM getPublicId]
getEntitySysID | Returns an entity's system ID [DOM getSystemId]
getFirstChild | Returns the first child of a node
getImplementation | Returns DOM-implementation structure (if defined)
getLastChild | Returns the last child of a node
getModifier | Returns a content model node's '?', '*', or '+' modifier [DOM extension]
getNextSibling | Returns a node's next sibling
getNamedItem | Returns the named node from a list of nodes
getNodeMapLength | Returns number of entries in a NodeMap [DOM getLength]
getNodeName | Returns a node's name
getNodeType | Returns a node's type code (enumeration)
getNodeValue | Returns a node's "value", its character data
getNotationPubID | Returns a notation's public ID [DOM getPublicId]
getNotationSysID | Returns a notation's system ID [DOM getSystemId]
getOwnerDocument | Returns the DOCUMENT node containing the given node
getPIData | Returns a processing instruction's data [DOM getData]
getPITarget | Returns a processing instruction's target [DOM getTarget]
getParentNode | Returns a node's parent node
getPreviousSibling | Returns a node's "previous" sibling
getTagName | Returns a node's "tagname", same as name for now
hasAttributes | Determines if element node has attributes [DOM extension]
hasChildNodes | Determines if node has children
hasFeature | Determines if DOM implementation supports a specific feature
insertBefore | Inserts a new child node before the given reference node
insertData | Inserts new character data into a node's existing data
isStandalone | Determines if document is standalone [DOM extension]
nodeValid | Validates a node against the current DTD [DOM extension]
normalize | Normalize a node by merging adjacent TEXT nodes
numAttributes | Returns number of element node's attributes [DOM extension]
numChildNodes | Returns number of node's children [DOM extension]
removeAttribute | Removes an element's attribute given its names
removeAttributeNode | Removes an element's attribute given its pointer
removeChild | Removes a node from its parents list of children
removeNamedItem | Removes a node from a list of nodes given its name
replaceChild | Replaces one node with another
replaceData | Replaces a substring of a node's character data with another string setAttribute Sets (adds or replaces) a new attribute for an element node given the attribute's name and value setAttributeNode Sets (adds or replaces) a new attribute for an element node given a pointer to the new attribute
setNamedItem | Sets (adds or replaces) a new node in a parent's list of children
setNodeValue | Sets a node's "value" (character data)
setPIData | Sets a processing instruction's data [DOM setData]

| Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
Library | Service | Contents | Index