Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
XsdValidator.php
Go to the documentation of this file.
1 <?php
7 
9 {
15  public function validate($schema, $xml)
16  {
17  $document = new \DOMDocument();
18  $document->loadXML($xml);
19 
20  libxml_use_internal_errors(true);
22  libxml_use_internal_errors(false);
23 
24  return $errors;
25  }
26 }
static validateDomDocument(\DOMDocument $dom, $schema, $errorFormat=self::ERROR_FORMAT_DEFAULT)
Definition: Dom.php:301
$errors
Definition: overview.phtml:9