In This Article

IXmlValidator Interface

Provides the base requirements for a class that can validate XML.

public interface IXmlValidator

Remarks

Instances of this object can be registered with an ISyntaxLanguage using the RegisterService(object, object) method. Once an instance is registered with the language for the IXmlValidator interface type, its features can be used by the language.

Methods

Validate(IParseRequest, IAstNode)

Validates the XML that is being parsed.

IEnumerable<IParseError> Validate(IParseRequest request, IAstNode ast)
Parameter Type Description
request IParseRequest

The IParseRequest that contains data about the requested parsing operation.

ast IAstNode

The root IAstNode of the parse result AST, if known.

Returns

IEnumerable<IParseError>:

The collection of validation errors that were found, if any.

See Also

See Also