CustomXMLNode Members

Include Protected Members
Include Inherited Members

Represents an XML node in a tree in a document. The CustomXMLNode object is a member of the CustomXMLNodes collection.

The CustomXMLNode type exposes the following members.

Properties

  Name Description
Public property Application (Inherited from _IMsoDispObj.)
Public property Application Gets an Application object that represents the container application for a CustomXMLNode. Read-only.
Public property Attributes Gets a CustomXMLNode collection representing the attributes of the current element in the current node. Read-only.
Public property BaseName Gets the base name of the node without the namespace prefix, if one exists, in the Document Object Model (DOM). Read-only.
Public property ChildNodes Gets a CustomXMLNodes collection containing all of the child elements of the current node. Read-only.
Public property Creator (Inherited from _IMsoDispObj.)
Public property Creator Gets a 32-bit integer that indicates the application in which the CustomXMLNode object was created. Read-only.
Public property FirstChild Gets a CustomXMLNode object corresponding to the first child element of the current node. If the node has no child elements (or if it isn’t of type msoCustomXMLNodeElement), returns Nothing. Read-only.
Public property LastChild Gets a CustomXMLNode object corresponding to the last child element of the current node. If the node has no child elements (or if it is not of type msoCustomXMLNodeElement), the property returns Nothing. Read-only.
Public property NamespaceURI Gets the unique address identifier for the namespace of the CustomXMLNode object. Read-only.
Public property NextSibling Gets the next sibling node (element, comment, or processing instruction) of the current node. If the node is the last sibling at its level, the property returns Nothing. Read-only.
Public property NodeType Gets the type of the current node. Read-only.
Public property NodeValue Gets or sets the value of the current node. Read/write.
Public property OwnerDocument Gets the object representing the Microsoft Office Excel workbook, Microsoft Office PowerPoint presentation, or the Microsoft Office Word document associated with this node. Read-only.
Public property OwnerPart Gets the object representing the part associated with this node. Read-only.
Public property Parent Gets the parent object for the CustomXMLNode object. Read-only.
Public property ParentNode Gets the parent element node of the current node. If the current node is at the root level, the property returns Nothing. Read-only.
Public property PreviousSibling Gets the previous sibling node (element, comment, or processing instruction) of the current node. If the current node is the first sibling at its level, the property returns Nothing. Read-only.
Public property Text Gets or sets the text for the current node. Read/write.
Public property XML Gets the XML representation of the current node and its children, if any exist. Read-only.
Public property XPath Gets a String with the canonicalized XPath for the current node. If the node is no longer in the Document Object Model (DOM), the property returns an error message. Read-only.

Top

Methods

  Name Description
Public method AppendChildNode Appends a single node as the last child under the context element node in the tree.
Public method AppendChildSubtree Adds a subtree as the last child under the context element node in the tree.
Public method Delete Deletes the current node from the tree (including all of its children, if any exist).
Public method HasChildNodes Returns True if the current element node has child element nodes.
Public method InsertNodeBefore Inserts a new node just before the context node in the tree.
Public method InsertSubtreeBefore Inserts the specified subtree into the location just before the context node.
Public method RemoveChild Removes the specified child node from the tree.
Public method ReplaceChildNode Removes the specified child node (and its subtree) from the main tree, and replaces it with a different node in the same location.
Public method ReplaceChildSubtree Removes the specified node (and its subtree) from the main tree, and replaces it with a different subtree in the same location.
Public method SelectNodes Selects a collection of nodes matching an XPath expression. This method differs from the _CustomXMLPart.SelectNodes(String) method in that the XPath expression will be evaluated starting with the 'expression' node as the context node.
Public method SelectSingleNode Selects a single node from a collection matching an XPath expression. This method differs from the _CustomXMLPart.SelectSingleNode(String) method in that the XPath expression will be evaluated starting with the 'expression' node as the context node.

Top

See Also

Reference

CustomXMLNode Interface

Microsoft.Office.Core Namespace