public function QueryPath::writeXML in QueryPath 6
Same name and namespace in other branches
- 7.3 QueryPath/QueryPath.php \QueryPath::writeXML()
- 7.2 QueryPath/QueryPath.php \QueryPath::writeXML()
1 call to QueryPath::writeXML()
- QueryPath::writeXHTML in QueryPath/
QueryPath.php
File
- QueryPath/
QueryPath.php, line 1376
Class
Code
public function writeXML($path = NULL, $options = NULL) {
if ($path == NULL) {
print $this->document
->saveXML(NULL, $options);
}
else {
try {
set_error_handler(array(
'QueryPathIOException',
'initializeFromError',
));
$this->document
->save($path, $options);
} catch (Exception $e) {
restore_error_handler();
throw $e;
}
restore_error_handler();
}
return $this;
}