CustomXMLPart.Load Method
Office Developer Reference |
Allows the template author to populate a CustomXMLPart from an existing file. Returns True if the load was successful.
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.Load(FilePath)
expression An expression that returns a CustomXMLPart object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
FilePath | Required | String | Points to the file on the user’s computer or on a network containing the XML to be loaded. |
Return Value
Boolean
Example
The following example adds a custom XML part, populates the custom XML part with XML from a file, and then manipulates the part's nodes.
Visual Basic for Applications |
---|
|
See Also