This sample shows how an application can parse an XML statistics log file, validate it against the ctgstatslog.xsd XML schema file and output statistics in a simple text format.
The supplied sample Ctgstat2 demonstrates a simple application using the XML statistics log file and XML schema file. The XML schema file, ctgstatslog.xsd, will need to be in the same directory as the XML statistics log file.
The statistics sample program is written in Java™ and supplied in samples/java/com/ibm/ctg/samples/stats/Ctgstat2.java. A precompiled version of com.ibm.ctg.samples.stats.Ctgstat2 is included in the Java archive file classes/ctgsamples.jar.
java com.ibm.ctg.samples.stats.Ctgstat2 filename
where filename is
the name of the XML statistics file.