CustomXMLValidationErrors.Add Method
Adds a CustomXMLValidationError object containing an XML validation error to the CustomXMLValidationErrors collection.
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(Node, ErrorName, ErrorText, ClearedOnUpdate)
expression An expression that returns a CustomXMLValidationErrors object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Node | Required | CustomXMLNode | Represents the node where the error occurred. |
| ErrorName | Required | String | Contains the name of the error. |
| ErrorText | Optional | String | Contains the descriptive error text. |
| ClearedOnUpdate | Optional | Boolean | Specifies whether the error is to be cleared from the CustomXMLValidationErrors collection when the XML is corrected and updated. |
Example
The following example adds an error message to the collection.
| Visual Basic for Applications |
|---|
|
Note