_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
XML
Type: System.StringOptional String. Contains the XML to add to the newly created _CustomXMLPart.
SchemaCollection
Type: System.ObjectOptional _CustomXMLSchemaCollection. Represents the set of schemas to be used to validate this stream.
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.