elseif (substr($data, 0, 3
) === "\xEF\xBB\xBF"
) { $data =
substr($data, 3
);
} if (substr($data, 0, 5
) === '<?xml' &&
strspn(substr($data, 5, 1
), "\x09\x0A\x0D\x20"
) && ($pos =
strpos($data, '?>'
)) !== false
) { $declaration =
$this->registry->
create('XML_Declaration_Parser', array
(substr($data, 5,
$pos - 5
)));
if ($declaration->
parse()) { $data =
substr($data,
$pos + 2
);
$data = '<?xml version="' .
$declaration->version . '" encoding="' .
$encoding . '" standalone="' .
(($declaration->standalone
) ? 'yes' : 'no'
) . '"?>' ."\n".
$this->
declare_html_entities() .
$data;
} else { $this->error_string = 'SimplePie bug! Please report this!';
return false;
} } $return = true;
static $xml_is_sane = null;