Ronald, I think the unmarshall methods added to the generated classes are convenience methods only, and internally (most likely) call the static methods on the Unmarshaller class. Can you please switch to an approach where you create an instance of Unmarshaller and call one of the non-static unmarshall() methods?
Regards Werner -----Ursprüngliche Nachricht----- Von: Ronald Dehuysser [mailto:[EMAIL PROTECTED] Gesendet: Montag, 08. August 2005 16:00 An: [email protected] Betreff: RE: [castor-user] unmarshal only unmarshals root element, not the elements inside I use the unmarshal method from the root element, which is static. But it's the only unmarshal method I know of... This is what I have in my code: GPanel gPanel = (GPanel)GPanel.unmarshal(new FileReader(frameFile)); This is de generated code: public static java.lang.Object unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (be.khlim.XMLFrame.swing.frame.generated.GPanel) Unmarshaller.unmarshal(be.khlim.XMLFrame.swing.frame.generated.GPanel.class, reader); } This has worked for me in the past (about two years ago...). Is there another method I should use? Thanks in advance, Ronald -----Original Message----- From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: maandag 8 augustus 2005 15:20 To: [email protected] Subject: AW: [castor-user] unmarshal only unmarshals root element, not the elements inside In this case, can you please verify that you are not using any of the static unmarshall methods ? Werner -----Ursprüngliche Nachricht----- Von: Ronald Dehuysser [mailto:[EMAIL PROTECTED] Gesendet: Montag, 08. August 2005 15:00 An: [email protected] Betreff: RE: [castor-user] unmarshal only unmarshals root element, not the elements inside Thanks for the fast response... Yes, the compiled classes are in the classpath. Cheers, Ronald -----Original Message----- From: Werner Guttmann [mailto:[EMAIL PROTECTED] Sent: maandag 8 augustus 2005 13:42 To: [email protected] Subject: AW: [castor-user] unmarshal only unmarshals root element, not the elements inside Ronald, have you compiled the classes generated, and are they available on the CLASSPATH when executing your test case/program ? Werner -----Ursprüngliche Nachricht----- Von: Ronald Dehuysser [mailto:[EMAIL PROTECTED] Gesendet: Montag, 08. August 2005 13:31 An: [email protected] Betreff: [castor-user] unmarshal only unmarshals root element, not the elements inside Hi all, I've got a schema from which I generated code with the code generator. However, when I try to unmarshall an xml file, it only unmarshalls the root element and none of the elements inside the root element. There aren't any exceptions thrown, it just doesn't go further than the root element. Any clues what I'm doing wrong? If you need the schema, the xml or the code I'm using, just let me know. Cheers, Ronald ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] ------------------------------------------------- ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

