I have an XSD (XML Schema) that contains several files. At the root of the system is the .xml directory, which is the XML directory. It contains the SYSTEM directory and URI directory definitions that are necessary for the proper handling of xsd files.
Now my question is: how can I check xml for these schemes in php? If I just use DOMDocument-> Schemavalidate () and give it the correct xsd, the directory definitions will not be resolved, and php throws an error similar to this:
Warning: DOMDocument::schemaValidate(): I/O warning : failed to load external entity "urn:oasis:names:tc:dita:xsd:highlightDomain.xsd:1.2"
This is in the catalog.xml file how to resolve this expression, but I could not find a way to handle this with php.
mimrock
source share