This question is about using java from PHP.
To validate an XML document against a schema I use Sun Multi Schema XML parser.
java -jar msv.jar doc.xsd doc.xml
I want to drive this process from PHP. I have the Java extensions installed and working however when I try to make an instance of the parser:
$msv = new Java("msv.jar");
Warning: java.lang.ClassNotFoundException: msv.jar
In the documentation for the Sun Multi Schema XML parser there are a number of ways the API can be called which I have tried with similar results.
How does the PHP extension know where to look for the java file?
Which of many java files should use to make an instance of the parser?
Is there another way of validating against a schema in PHP?