Add the DOMXPathNamespace.
Add the DOMNode cast function.
Add the DOMErrorHandler.
DOMImplementation::loadDOMExceptionMsg fix.
DOMConfiguration::setParameter fgDOMErrorHandler support.
Template function from (47ba1756aeb3d4ad6c2b5eab608161598aef6825).