QueryPath 2.0.1 (Developer notes)

5 views
Skip to first unread message

Matt

unread,
Aug 5, 2009, 1:05:54 AM8/5/09
to devel-querypath
In addition to the changes noted in the announcement to querypath-
support, the following low-level changes have been made:

- QueryPath now allows you to explicitly set the exact error handling
level using the option 'exception_level'. In other words, you can do
this:

qp($xml, NULL, array('exception_level' => E_ALL ^ E_NOTICE));

OR

qp($xml, NULL, array('exception_level' => E_ERROR | E_USER_ERROR));

OR

qp($xml, NULL, array('exception_level' => 257)); // Same as E_ERROR |
E_USER_ERROR

Note that these settings will not effect IO warnings. A failure to
open, write, or read a document will still result in a
QueryPathIOException regardless of the exception level settings.

Also note that if the ignore_parser_warnings option is set to TRUE,
the exception_level option will be ignored.

Best,

Matt
Reply all
Reply to author
Forward
0 new messages