Deletes the CustomXMLValidationError object representing a data validation error.

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.Delete

expression An expression that returns a CustomXMLValidationError object.

Example
The following example deletes the validation error containing specific text.

Visual Basic for Applications
Dim objCustomXMLValidationError as CustomXMLValidationError ' Deletes the specified error message. objCustomXMLValidationError.Text("To add content to this data stream, it must be valid, well-formed XML." ).Delete

See also: