Hirdetés

Új hozzászólás Aktív témák

  • VladimirR

    nagyúr

    az alabbi kod miert nem dob exception-t?

    $xml = new DOMdocument( "1.0", "UTF-8" );
    $xml->strictErrorChecking = true;
    try {
    $xml->loadXML( $html );
    $xml->validate();
    } catch ( DOMException $e ) {
    print $e->getCode();
    return;
    } catch ( Exception $e ) {
    print $e->getCode();
    return;
    }

    helyette dob olyanokat, hogy:

    Warning: DOMDocument::loadXML(): PCDATA invalid Char value 27 in Entity, line: 1998 in /home/cyla/scripts/ph_search/posts.php on line 55

    Warning: DOMDocument::loadXML(): PCDATA invalid Char value 27 in Entity, line: 1998 in /home/cyla/scripts/ph_search/posts.php on line 55

    Warning: DOMDocument::loadXML(): PCDATA invalid Char value 27 in Entity, line: 2011 in /home/cyla/scripts/ph_search/posts.php on line 55

    Warning: DOMDocument::loadXML(): PCDATA invalid Char value 27 in Entity, line: 2011 in /home/cyla/scripts/ph_search/posts.php on line 55

    Warning: DOMDocument::loadXML(): PCDATA invalid Char value 27 in Entity, line: 2024 in /home/cyla/scripts/ph_search/posts.php on line 55

    Warning: DOMDocument::loadXML(): PCDATA invalid Char value 27 in Entity, line: 2024 in /home/cyla/scripts/ph_search/posts.php on line 55

    Notice: DOMDocument::validate(): No DTD given in XML-Document in /home/cyla/scripts/ph_search/posts.php on line 72

    Warning: DOMDocument::validate(): no DTD found! in /home/cyla/scripts/ph_search/posts.php on line 72

    Notice: DOMDocument::validate(): No DTD given in XML-Document in /home/cyla/scripts/ph_search/posts.php on line 72

    Warning: DOMDocument::validate(): no DTD found! in /home/cyla/scripts/ph_search/posts.php on line 72

Új hozzászólás Aktív témák