J
JCD
Hello.
i've created classes with xjc from that xml schema:
http://monique.damichel.perso.sfr.fr/provisoire/gpx.xml
Here's the list of those classes:
http://monique.damichel.perso.sfr.fr/provisoire/classesjaxb.gif
But when I compile that code:
JAXBContext jc = JAXBContext.newInstance("io.jaxb");
Unmarshaller unmarshaller = jc.createUnmarshaller();
GpxType gpx = (GpxType) unmarshaller.unmarshal(new FileInputStream
("ressources/BorneSN.gpx"));
I get that error message:
javax.xml.bind.JAXBElement cannot be cast to io.jaxb.GpxType
I don't know how to cast unmarshaller with the classes created by xjc
and I wonder if some are not missing.
What must I do? Please help me.
i've created classes with xjc from that xml schema:
http://monique.damichel.perso.sfr.fr/provisoire/gpx.xml
Here's the list of those classes:
http://monique.damichel.perso.sfr.fr/provisoire/classesjaxb.gif
But when I compile that code:
JAXBContext jc = JAXBContext.newInstance("io.jaxb");
Unmarshaller unmarshaller = jc.createUnmarshaller();
GpxType gpx = (GpxType) unmarshaller.unmarshal(new FileInputStream
("ressources/BorneSN.gpx"));
I get that error message:
javax.xml.bind.JAXBElement cannot be cast to io.jaxb.GpxType
I don't know how to cast unmarshaller with the classes created by xjc
and I wonder if some are not missing.
What must I do? Please help me.