Hi,
I'm trying to display to the browser the output of the exec function.
I'm validating XML docs against their schema using the application called SAXCount in the xerces C++ package by apache.
When a valid XML document is called in the command the browser displays the information correctly, but when I use an invalid XML document I get no output to the screen. Is this due to some error filehandler? If so how to I output this error message to STDOUT? I'm using both windows 2000 and UNIX.
The code I'm using is:
$query = "SAXCount -v=always -n -s ./xml/personal-schema-valid.xml";
$lastLine = exec($query, $AllOuput, $ReturnValue);
echo "START OUTPUT<pre>\n";
for ($i=0; $i<count($AllOuput); $i++)
echo $AllOuput[$i] ."<br>\n";
echo "</pre>END OUTPUT\n";
An example of a valid XML document:
START OUTPUT
./xml/personal-schema-valid.xml: 30 ms (37 elems, 20 attrs, 140 spaces, 128 chars)
END OUTPUT
Example of invalid document:
START OUTPUT
END OUTPUT
Thanks in advance if anyone knows how to do this.
Euan Cottee