void add(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.

Source

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