Partager via


CustomXMLNode.AppendChildNode Method

Appends a single node as the last child under the context element node in the tree.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Sub AppendChildNode ( _
    Name As String, _
    NamespaceURI As String, _
    NodeType As MsoCustomXMLNodeType, _
    NodeValue As String _
)
'Usage
Dim instance As CustomXMLNode
Dim Name As String
Dim NamespaceURI As String
Dim NodeType As MsoCustomXMLNodeType
Dim NodeValue As String

instance.AppendChildNode(Name, NamespaceURI, _
    NodeType, NodeValue)
void AppendChildNode(
    string Name,
    string NamespaceURI,
    MsoCustomXMLNodeType NodeType,
    string NodeValue
)

Parameters

  • Name
    Type: System.String

    Represents the base name of the element to be appended.

  • NodeValue
    Type: System.String

    Used to set the value of the appended node for those nodes that allow text. If the node doesn’t allow text, the parameter is ignored.

Remarks

If the context node is any type other than msoCustomXMLNodeElement, or if the operation would result in an invalid tree structure, the append is not performed and an error message is displayed.

See Also

Reference

CustomXMLNode Interface

CustomXMLNode Members

Microsoft.Office.Core Namespace