Put the follow code piece in and print out the exception to see what is wrong...
import java.io.IOException;
import com.ximpleware.extended.*;
public class testExtendedVTD {
public static void main(String s[]){
VTDGenHuge vgh = new VTDGenHuge();
XMLBuffer xb = new XMLBuffer(); //or XMLMemeMappedBuffer
try {
xb.readFile("test.xml");
vgh.setDoc(xb);
} catch (ParseExceptionHuge e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}