tags:

views:

44

answers:

0

Good day to you,

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 so. 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?

Thanks.