// Always I check the ImageAnnotation if it valid based on the AIM XML Schema
	AnnotationBuilder.saveToFile (imageAnnotation, "./test.xml", pathXSD);
	// Printing saving operation’s result. Instead of using try/catch blocks, you can see the any error message 
	// by using AnnotationBuilder.getAimXMLsaveResult() method.
	System.out.println(AnnotationBuilder.getAimXMLsaveResult());

The above was given to me as part of a tutorial. I turned that into this.

public class SaveToFile extends ImageAnnotationInstance {
	{
	AnnotationBuilder.saveToFile (imageAnnotation, "./test.xml", pathXSD);
	       {
		       System.out.println(AnnotationBuilder.getAimXMLsaveResult());
	       }
	}
}

First of all, are my brackets correct?
If so, I keep getting an error on the pathXSD part. I'm guessing I'm supposed to put in a path, but am not sure how. Is this a question to ask XML people?

--- Update ---

I'm just playing around with the code right now, and tried this out.

public class SaveToFile extends ImageAnnotationInstance {
	AnnotationBuilder.saveToFile (imageAnnotation, "./test.xml", pathXSD);
	public static void main(String[] args)
	{
		System.out.println(AnnotationBuilder.getAimXMLsaveResult());
	}	
}

Now there is an error with the "./test.xml" part...