Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:107290 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13326 invoked from network); 23 Sep 2019 09:59:29 -0000 Received: from unknown (HELO php-smtp3.php.net) (208.43.231.12) by pb1.pair.com with SMTP; 23 Sep 2019 09:59:29 -0000 Received: from php-smtp3.php.net (localhost [127.0.0.1]) by php-smtp3.php.net (Postfix) with ESMTP id 3BAD32D19B1 for ; Mon, 23 Sep 2019 00:38:04 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp3.php.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Virus: No Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp3.php.net (Postfix) with ESMTPS for ; Mon, 23 Sep 2019 00:38:00 -0700 (PDT) Received: by mail-io1-xd35.google.com with SMTP id b19so31110291iob.4 for ; Mon, 23 Sep 2019 00:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LSBRlUcFjiPpbet0Xaf7O1dwXshfxXTmWttTvfTE2w8=; b=guU9JCv98xySgNTte/RvgzFtsE/N9JQ1zER1JjF8C0ZAuMuoz6GIBuesPNFmqXUm4d bBR4r6td/yga6NfDU2zxvtuRYqzP7tndSuiEB3wBI5J0zsqh2tlPLfSAr9er6dyscJyl Bx7ctmF/reKBkDiGp4Qh2ATcfsje+Wkrr3bYG0wZ3vacxyjSaOcJod/amqLgMHjdZRLw ZeAAj3EYRo2BkjhzePeNGQEpeZbMFyQvjovwcB4CnqhnoIpBnuEOzYGzw741tLfcYgpz x7dFxegwaopmMwpIJskYFWVSfVl+yVzj3+64onRBvlA+aseR7mpF25jMGA1sX9UAcZ8k odiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LSBRlUcFjiPpbet0Xaf7O1dwXshfxXTmWttTvfTE2w8=; b=oV5Yq9IhzW9Cyavwdo0kiZTCbnURm2FgiGNag6mMShfinvJbL7iXqImFeAdRN+B/HF rccXGslyemamNMryJPiR4LELKd7Hh0vxAqGtOuS9mKOYPWAf6XapdoKJIY7fs/xt1t1p MqrlhfB3shIqH1gTiMzZ2lUajPk4pMI1Yt45IOz8o1ogfQUI9nv5MyzJaBp6UJ/olEVB nQ4dOKg9xUNTkRwVyLQycGZAyjJCx6xq6SbNWKEH/J1hCMoxm9YRDDmvlSpvvOsogUNO qe9dB9AtGz2j5+6RKYvwO5hA/G0AuiXgUyOhBzJWgwTTaiYPoiUd2nJ1EMOsWuZkzxes b50g== X-Gm-Message-State: APjAAAVQGoP67RWkbLKGZZRBNg8+pZbP6E+74/Me/WDE87OcV9WUNz6D 8PaLIb8esOJJZeEXiQZCbkq0cZeIoQrlAaD2K+VlZ4QUCWk= X-Google-Smtp-Source: APXvYqyBwogzZxTkWGWpPQGg5YxgELCDnfpjiBSUV8h7isG/xd1VQCFUoGKQfKTD782WD8OI+k881u5lGefh8Y8jBC0= X-Received: by 2002:a5d:8ad4:: with SMTP id e20mr16515821iot.203.1569224279665; Mon, 23 Sep 2019 00:37:59 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 23 Sep 2019 09:37:36 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" X-Envelope-From: Subject: XML Validation From: gertp93@gmail.com (Gert) Hi Internals, I've been working with XML and validation recently, and the Dom classes do basically everything that is needed. The only thing is that to get the errors of the schema validation we call the `validateSchema` on the DomDocument, and then use the `libxml_get_errors` function to actually get the errors. I'd like to propose either adding a flag to the `validateSchema` to make it throw an error detailing the actual XML errors, or adding a new function that validates and throws with all errors. I'd like to do the same with `schemaValidateSource` as well. Do you think this is something that should be added to PHP itself, or is it something that should be solved by third party packages?