CustomXMLParts.Add Method
Office Developer Reference |
Allows you to add a new CustomXMLPart to a file.
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. |
Syntax
expression.Add(XML, SchemaCollection)
expression An expression that returns a CustomXMLParts object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
XML | Optional | String | Contains the XML to add to the newly created CustomXMLPart. |
SchemaCollection | Optional | CustomXMLSchemaCollection | Represents the set of schemas to be used to validate this stream. |
Return Value
CustomXMLPart
Example
The following example adds a new CustomXMLPart, selects a CustomXMLPart using a search criteria, and then selects a single node from that part.
Visual Basic for Applications |
---|
|
See Also