Table of contents
TOC
Collapse the table of content
Expand the table of content

CustomXMLNodes Object (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

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.

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 

Properties

Name
Application
Count
Creator
Item
Parent

See also

Other resources

Object Model Reference

© 2018 Microsoft