try {
JAXBContext jc11 = JAXBContext.newInstance("com.topografix.gpx._1._1");
Unmarshaller unmarshaller = jc11.createUnmarshaller();
Object result = unmarshaller.unmarshal(file);
return new Gpx11( (com.topografix.gpx._1._1.GpxType)result );
} catch(Exception e) {
throw new Exception("Unable to unmarshall file "+file.getAbsolutePath(), e);
}
}