Hello All.
1) I created a schema
2) I generated the classes with the build tool
3) I included the Castor libraries and the generated classes into my project (which successfully compiles)
 
My problem occurs when I try to do the following:
 
GeneratedSchemaRootTag generatedObject = (GeneratedSchemaRootTag ) Unmarshaller.unmarshal( GeneratedSchemaRootTag .class, new FileReader( xmlFile ) );
 
Am I using the generated classes incorrectly?
I am merely trying to "suck in" (read unmarshall) the xml file.  That xml file conforms to the schema used to generate the classes, and I am trying to use the class that represents the root element in the schema as the "bean" that holds the xml data. 

Reply via email to