WP_oEm8b7c:f320:99b9:690f:4595:cd17:293a:c069_parse_xml_body( string $response_body ): stdClass|false 
 This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.   Serves as a helper function for parsing an XML response body.   Parameters   $response_body string Required     Return stdClass|false    Source  File: wp-includes/class-wp-oembed.php. View all references  private function _parse_xml_body( $response_body ) {
	if ( ! function_exists( 'simplexml_import_dom' ) || ! class_exists( 'DOMDocument', false ) ) {
		return false;
	}

	$dom     = new DOMDocument;
	$success = $dom->loadXML( $response_body );
	if ( ! $success ) {
		return false;
	}

	if ( isset( $dom->doctype ) ) {
		return false;
	}

	foreach ( $dom->childNodes as $child ) {
		if ( XML_DOCUMENT_TYPE_NODE === $child->nodeType ) {
			return false;
		}
	}

	$xml = simplexml_import_dom( $dom );
	if ( ! $xml ) {
		return false;
	}

	$return = new stdClass;
	foreach ( $xml as $key => $value ) {
		$return->$key = (string) $value;
	}

	return $return;
}
   Related  Used By    Used By Description      WP_oEm8b7c:f320:99b9:690f:4595:cd17:293a:c069_parse_xml() wp-includes/class-wp-oembed.php   Parses an XML response body.   
    Changelog    Version Description     3.6.0 Introduced.    

    
{'path': 'public/docs/wordpress/classes/wp_oembed/_parse_xml_body.html', 'source': 'DevDocs.IO'}