You are here

public function QPXML::schema in QueryPath 7.3

Same name and namespace in other branches
  1. 6 QueryPath/Extension/QPXML.php \QPXML::schema()
  2. 7.2 QueryPath/Extension/QPXML.php \QPXML::schema()

File

QueryPath/Extension/QPXML.php, line 12

Class

QPXML

Code

public function schema($file) {
  $doc = $this->qp
    ->branch()
    ->top()
    ->get(0)->ownerDocument;
  if (!$doc
    ->schemaValidate($file)) {
    throw new QueryPathException('Document did not validate against the schema.');
  }
}