Contains a collection of CustomXMLNodes objects representing the XML nodes in a document.

Note
References to DTDs from custom XML parts are not supported. DTD references in custom XML parts will not resolve, and custom XML parts containing DTD references generate an exception when an attempt is made to save the file's content to a flat XML file.

Remarks

The Attributes and the ChildNodes properties return collections of nodes of this type.

Example

The following example selects one or more matching the XPath expression.

Visual Basic for Applications
Sub CustomXmlNodes() Dim cxp1 As CustomXMLPart Dim cxns As CustomXMLNodes With ActiveDocument ' Returns the first custom xml part with the given root namespace. Set cxp1 = .CustomXMLParts("urn:invoice:namespace") ' Get custom xml nodes using XPath. Set cxns = cxp1.SelectNodes("//*[@unitPrice > 20]") End With End Sub 

See also: