ChildNodeSuggestions Property
Returns an XMLChildNodeSuggestions collection that represents the list of allowed elements for the Document object (which returns the root elements for all attached schemas) or for the XMLNode object (which returns the child elements of a specified element).
Note Each XMLChildNodeSuggestion object in a XMLChildNodeSuggestions collection is an item in the list of allowed possible XML elements at the bottom of the XML Structure task pane.
expression.ChildNodeSuggestions
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example loops through the suggestions for the first element selected in the active document and inserts all allowed elements at the insertion point position.
Sub GetChildNodeSuggestions()
Dim objSuggestion As XMLChildNodeSuggestion
Dim objNode As XMLNode
Set objNode = Selection.XMLParentNode
For Each objSuggestion In objNode.ChildNodeSuggestions
objSuggestion.Insert
Selection.MoveRight
Next
End Sub