public function QPXML::schema in QueryPath 7.2
Same name and namespace in other branches
- 6 QueryPath/Extension/QPXML.php \QPXML::schema()
- 7.3 QueryPath/Extension/QPXML.php \QPXML::schema()
File
- QueryPath/
Extension/ QPXML.php, line 12
Class
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.');
}
}