Share via


XML DOM Methods (C++)

banner art

Previous Next

XML DOM Methods (C++)

This SDK supports the following XML DOM methods.

Method Description
appendChild Appends the supplied new child as the last child of this node.
cloneNode Creates a new node that is an exact clone of this node.
createAttribute Creates a new attribute with the specified name.
createElement Creates an element node using the specified name.
createNode* Creates a node using the supplied type, name, and namespace.
get_attributes Retrieves the list of attributes for this node.
get_childNodes Retrieves a node list containing the children (for nodes that can have children).
get_documentElement Retrieves the root element of the document.
get_firstChild Retrieves the first child of this node.
get_implementation Retrieves the IXMLDOMImplementation object for this document.
get_item (IXMLDOMNamedNodeMap) Allows random access to individual nodes within the collection.
get_item (IXMLDOMNodeList) Allows random access to individual nodes within the collection.
get_lastChild Retrieves the last child of this node.
get_length (IXMLDOMNamedNodeMap) Retrieves the number of items in the collection.
get_length (IXMLDOMNodeList) Retrieves the number of items in the collection.
get_name Retrieves the attribute name.
get_nextSibling Retrieves the next sibling of this node in the parent's child list.
get_nodeName Retrieves the qualified name of the element, attribute, or entity reference, or a fixed string for other node types.
get_nodeType Retrieves the XML DOM node type, which determines valid values and whether the node can have child nodes.
get_nodeTypeString* Retrieves the node type in string form.
get_nodeValue Retrieves the value associated with the node.
get_ownerDocument Retrieves the root of the document that contains this node.
get_parentNode Retrieves the parent node (for nodes that can have parents).
get_previousSibling Retrieves the left sibling of this node.
get_tagName Retrieves the element name (the name that appears within the tag).
get_url* Retrieves the canonical URL for the most recently loaded XML document.
get_value Retrieves the attribute value.
getAttribute Retrieves the value of the named attribute.
getAttributeNode Retrieves the named attribute node.
getElementsByTagName (IXMLDOMDocument) Retrieves a collection of elements that have the name specified in this method call.
getElementsByTagName (IXMLDOMElement) Retrieves a list of all descendant elements that match the supplied name.
getNamedItem Retrieves the attribute with the specified name.
getQualifiedItem* Retrieves the attribute with the specified namespace and attribute name.
hasChildNodes Retrieves a Boolean value indicating whether this node has children.
hasFeature Retrieves a Boolean value indicating whether the specified version of the implementation supports the specified feature.
insertBefore Inserts a child node to the left of the specified node or at the end of the list.
load* Synchronously loads an XML document with the contents of the file at the specified location.
loadXML* Loads the supplied string into an XML document.
nextNode (IXMLDOMNamedNodeMap) Retrieves the next node in the collection.
nextNode* (IXMLDOMNodeList) Retrieves the next node in the collection.
put_nodeValue Specifies the text associated with the node.
put_value Specifies the attribute value.
putref_documentElement Specifies the root element of the document.
removeAttribute Removes or replaces the named attribute.
removeAttributeNode Removes the specified attribute from this element.
removeChild Removes the specified child node from the list of children and returns it.
removeNamedItem Removes an attribute from the collection.
removeQualifiedItem Removes the attribute with the specified namespace and attribute name.
replaceChild Returns the specified old child node and replaces it with the supplied new child node.
reset (IXMLDOMNamedNodeMap) Resets the iterator in the collection of attribute nodes.
reset* (IXMLDOMNodeList) Resets the iterator in the collection of nodes.
save* Saves an XML document to the specified location.
setAttribute Specifies the value of the named attribute.
setAttributeNode Adds or changes the supplied attribute node on this element.
setNamedItem Adds the supplied node to the collection.

* Denotes an extension to the W3C DOM.

See Also

Previous Next