Use instanceof_function to determine of a class is SimpleXMLElement

The problem is that simplexml can be loaded or not. Simply try to
resolve sxe_get_element_class_entry() dynamically at module
startup. If it is available then use it, if it is now then simplexml
is not loaded and XML support will be disabled.