What is the difference between Castor XML and JAXB binding since both are binding java object to XML and vice versa.
Updated :
As using Castor I can do this Assume packageA.ClassA
and packageB.ClassA
have same attributes and class name just that they were located in different package.
packageA.ClassA - > XML -> packageB.ClassA
By using JAXB if I am doing this Marshall object packageA.ClassA
to XML and from XML unmarshall into object packageB.ClassA
I got Casting error.