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.StringRepresents the base name of the element to be appended.
NamespaceURI
Type: System.StringRepresents the namespace of the element to be appended. This parameter is required to append nodes of type msoCustomXMLNodeElement or msoCustomXMLNodeAttribute, otherwise it is ignored.
NodeType
Type: Microsoft.Office.Core.MsoCustomXMLNodeTypeSpecifies the type of node to append. If the parameter is not specified, it is assumed to be of type msoCustomXMLNodeElement.
NodeValue
Type: System.StringUsed 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.