I notice from the usage documentation on the jibx site that in order to unmarshall a xml document into a object, I need to know in advance what the type of the object is:
IBindingFactory bfact =
BindingDirectory.getFactory(Customer.class);
IUnmarshallingContext uctx =
bfact.createUnmarshallingContext();
Object obj = uctx.unmarshalDocument(
new FileInputStream("filename.xml"), null);
What if I don't know that "filename.xml" is actually holding a Customer object? Is there a way to make jibx look in the mapping automatically to find which object the root element of "filename.xml" is refering to?
Thanks
