add method

void add (
  1. NodeValidator validator
)

Add an additional validator to the current list of validators.

Elements and attributes will be accepted if they are accepted by any validators.

Implementation

void add(NodeValidator validator) {
  _validators.add(validator);
}