added 2 new functions core_xml_to_array() and core_object_to_array()