CustomXMLParts.SelectByID Method
Office Developer Reference |
Selects a custom XML part matching a GUID.
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.SelectByID(Id)
expression An expression that returns a CustomXMLParts object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Id | Required | String | Contains the GUID for the custom XML part. |
Return Value
CustomXMLPart
Remarks
If a custom XML part with this ID does not exist, the method returns Nothing.
Example
The following example retrieves a custom XML part matching the GUID and then searches for a node in that part that matches an XPath expression.
Visual Basic for Applications |
---|
|
See Also