Hi Tobias, I don't think that's actually possible.
Regards Werner Stegmann, Tobias wrote: > Good day to you all, > > I use Castor to map network infrastructure into Java classes. My XML file > looks like this: > > <SPECTRUM_Topology> > <Topology> > <!-- Device information --> > <Device ip_dnsname="172.20.162.1" ... /> > </Topology> > <Update> > <Device ip_dnsname="172.20.162.1"> > <!-- Port information --> > <Port ... /> > <Port ... /> > </Device> > </Update> > </SPECTRUM_Topology> > > The Port elements should be referenced in a java.util.Vector in the Device > class. > > Does somebody know, how to tell Castor to add the Port object unmarshalled > from the "Update" subtree to a corresponding Device object unmarshalled from > the "Topology" subtree? > > I've tried identity="ip_dnsname" and reference="true" according to the > references howto, but all I get is a "org.exolab.castor.xml.MarshalException: > Duplicate ID 172.20.162.1 encountered", when the device elements in the > "Update" subtree are getting unmarshalled. > > Thanks for your help. > > Diese E-Mail kann vertrauliche oder rechtlich gesch?tzte Informationen > enthalten. Wenn Sie nicht der beabsichtigte Empf?nger sind, informieren Sie > bitte sofort den Absender und l?schen Sie diese E-Mail. Das unbefugte > Kopieren dieser E-Mail oder die unbefugte Weitergabe der enthaltenen > Informationen ist nicht gestattet. > > The information contained in this message is confidential or protected by > law. If you are not the intended recipient, please contact the sender and > delete this message. Any unauthorised copying of this message or unauthorised > distribution of the information contained herein is prohibited. > > Controlware GmbH Kommunikationssysteme > Telefon: (0 60 74) 8 58-0 > E-Mail: [email protected] > http://www.controlware.de > > Sitz: 63128 Dietzenbach, Registergericht: Offenbach a.M., HRB Nr. 6431, > USt.-Id.-Nr. DE 113539225 > Gesch?ftsf?hrung: Helmut E. W?rner (Vorsitzender), Bernd Schwefing, Hubert > Potthoff Beirat: Dr. Gert Sieger (Vorsitzender), Dr. Peter Pag?, Kurt Sibold > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

