Beispiel #1
0
/**
 * Load a given XML-string with simplexml, correcting encoding
 * @param string $Xml
 * @return SimpleXMLElement
 */
function simplexml_load_string_utf8($Xml)
{
    return simplexml_load_string(simplexml_correct_ns($Xml), null, LIBXML_PARSEHUGE);
}
Beispiel #2
0
/**
 * Load a given XML-string with simplexml, correcting encoding
 * @param string $Xml
 * @return SimpleXMLElement
 */
function simplexml_load_string_utf8($Xml)
{
    return simplexml_load_string(simplexml_correct_ns($Xml));
}