|
Hi, I am trying to do the following operation vmd
= (VIDEOMD) mets.getAmdSec(5).getTechMD(0).getMdWrap().getXmlData().getAnyObject(0); and I get the following exception:
Unmarshaller Exception: java.lang.ClassCastException VIDEOMD is a Castor generated object and so it “mets”. The “XmlData”
element of “mets” contains the “any”
element. Mets and VIDEOMD both have target namespaces which are different and
the generated classes belong to different packages. Is it enough to set up a namespace/package mapping in castorbuilder.properties like this http://www.loc.gov/METS/=eviada.mets,\ http://www.loc.gov/VMD/=eviada.vmd I have tried doing source code generation using the above mapping, but
I still get the same error. Could someone please comment on what I am missing here? Thanks, Prajakta |
