Share via


_CustomXMLParts.Add Method

Allows you to add a new _CustomXMLPart to a file.

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

Syntax

'Declaration
Function Add ( _
    XML As String, _
    SchemaCollection As Object _
) As CustomXMLPart
'Usage
Dim instance As _CustomXMLParts
Dim XML As String
Dim SchemaCollection As Object
Dim returnValue As CustomXMLPart

returnValue = instance.Add(XML, SchemaCollection)
CustomXMLPart Add(
    string XML,
    Object SchemaCollection
)

Parameters

Return Value

Type: Microsoft.Office.Core.CustomXMLPart
CustomXMLPart

Remarks

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.

See Also

Reference

_CustomXMLParts Interface

_CustomXMLParts Members

Microsoft.Office.Core Namespace