Skip to main content

Unmarshalling a XML using JAXB

No replies
Joined: 2012-08-23

I have a BaseXSD and a sub XSD which inherits properties from the base Scheme
input XML got validated with the Child XSD.
I am able to generate the classes for the Child XSD.
But when i try to Unmarshall the xml file it throws
Exception in thread "main" java.lang.ClassCastException: javax.xml.bind.JAXBElement cannot be cast to com.infa.all.DatamapGeneration
at com.infa.all.JAXBParser.main(

Can some one Please help me.