WordPress at a glance
function is not described

WP_oEmbed::_parse_xml() private WP 3.0.0

Parses an XML response body.

{} It's a method of the class: WP_oEmbed{}

No Hooks.

Return

Object/false.

Usage

// private - for code of main (parent) class only
$result = $this->_parse_xml( $response_body );
$response_body(string) (required)

Changelog

Since 3.0.0 Introduced.

Code of WP_oEmbed::_parse_xml() WP 5.5.3

<?php
private function _parse_xml( $response_body ) {
	if ( ! function_exists( 'libxml_disable_entity_loader' ) ) {
		return false;
	}

	$loader = libxml_disable_entity_loader( true );
	$errors = libxml_use_internal_errors( true );

	$return = $this->_parse_xml_body( $response_body );

	libxml_use_internal_errors( $errors );
	libxml_disable_entity_loader( $loader );

	return $return;
}