Could we add a similar function to WordPress ''(maybe `wp_SimpleXMLElement_to_array()`)'' so that people can easily convert `SimpleXMLElement`s to usable formats and also have the `set_transient()` use this function to enable `SimpleXMLElement`s to be saved without requiring the developer to handle it explicitly? The `SimpleXMLElement` could be reconstituted in `get_transient()` for parity between set and get.

20

Could we add a similar function to WordPress ''(maybe `wp_SimpleXMLElement_to_stdClass()`)'' so that people can easily convert `SimpleXMLElement`s to usable formats and also have the `set_transient()` use this function to enable `SimpleXMLElement`s to be saved without requiring the developer to handle it explicitly? The `SimpleXMLElement` could be reconstituted in `get_transient()` for parity between set and get.

21

21

22

Alternately still include the function but throw an error indicating the user is trying to save a `SimpleXMLElement` and tell them they need to use `wp_SimpleXMLElement_to_array()` to transform it first?

22

Alternately still include the function but throw an error indicating the user is trying to save a `SimpleXMLElement` and tell them they need to use `wp_SimpleXMLElement_to_stdClass()` to transform it first?