I'm trying to validate an XML file against an XSD using the function schemaValidate(String file) from DOMDocument.
When I validate it on other tools like online validators, it works fine, but in my program I always get this error and really can't find where it's coming from:
Warning: DOMDocument::schemaValidate(product/xxxx/xxxx/xxxxx/xsd/AdlSchema.xsd):
failed to open stream: Permission denied in /home/public_html/xxxx/xxxx.php on line 209
Warning: DOMDocument::schemaValidate(): I/O warning :
failed to load external entity "product/xxxx/xxxx/xxxx/xxxx/xsd/AdlSchema.xsd" in /home/public_html/xxxx/xxxx.php on line 209
Warning: DOMDocument::schemaValidate(): Failed to locate the main schema resource
at 'product/xxxxx/xxxxx/xxxxx/xxxx/xsd/AdlSchema.xsd'. in xxxx/xxxxx.php on line 209
Warning: DOMDocument::schemaValidate(): Invalid Schema in xxxx/xxxx.php on line 209
So my question is, is there a way to get more details about this error (mainly the Invalid schema one) with DOMDocument functions? and if ever someone could tell what could cause that kind of errors that would be great (xml and xsd are kind of confidentials, sorry, but once again it is working just fine with a few other tools).