CustomXMLPart members (Office)

Represents a single CustomXMLPart in a CustomXMLParts collection.

Events

Name Description
NodeAfterDelete Occurs after a node is deleted in a CustomXMLPart object.
NodeAfterInsert Occurs after a node is inserted in a CustomXMLPart object.
NodeAfterReplace Occurs just after a node is replaced in a CustomXMLPart object.

Methods

Name Description
AddNode Adds a node to the XML tree.
Delete Deletes the current CustomXMLPart from the data store (IXMLDataStore interface).
Load Allows the template author to populate a CustomXMLPart from an existing file. Returns True if the load was successful.
LoadXML Allows the template author to populate a CustomXMLPart object from an XML string. Returns True if the load was successful.
SelectNodes Selects a collection of nodes from a custom XML part.
SelectSingleNode Selects a single node within a custom XML part matching an XPath expression.

Properties

Name Description
Application Gets an Application object that represents the container application for the CustomXMLPart object. Read-only.
BuiltIn Gets a value that indicates whether the CustomXMLPart is built-in. Read-only.
Creator Gets a 32-bit integer that indicates the application in which the CustomXMLPart object was created. Read-only.
DocumentElement Gets the root element of a bound region of data in a document. If the region is empty, the property returns Nothing. Read-only.
Errors Gets a CustomXMLValidationErrors object that provides access to any XML validation errors, if any exist. If no validation errors exist, this property returns Nothing. Read-only.
Id Gets a String containing the GUID assigned to the current CustomXMLPart object. Read-only.
NamespaceManager Gets the set of namespace prefix mappings used against the current CustomXMLPart object. Read-only.
NamespaceURI Gets the unique address identifier for the namespace of the CustomXMLPart object. Read-only.
Parent Gets the Parent object for the CustomXMLPart object. Read-only.
SchemaCollection Gets or sets a CustomXMLSchemaCollection object representing the set of schemas attached to a bound region of data in a document. Read/write.
XML Gets the XML representation of the current CustomXMLPart object. Read-only.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.