DOMDocument->schemaValidateSource()

Validates a document based on a schema ()

DOMDocument {
  bool schemaValidateSource(string source);
}

Validates a document based on a schema defined in the given string.

参数

source

A string containing the schema.

返回值

如果成功则返回 TRUE,失败则返回 FALSE