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