I have seen the online employee examples of describing the datasource with respect to a simple container that holds multiple employees. How about XML that has attributes and contains deeper nesting? For example... how would you define the datasource for this xml?
<HostMap>
<service address="frost.tuc.noao.edu" port="7400"/>
<host address="node00" port="7400" serviceInterface="192.168.1.130">
<graspcontroller address="tc2A1" port="915" hostInterface="192.168.1.251">
<OTA otaAddress="0" position="0" row="0" column="0" />
<OTA otaAddress="1" position="1" row="1" column="0" />
</graspcontroller>
<graspcontroller address="tc2A2" port="915" hostInterface="192.168.1.252" >
<OTA otaAddress="256" position="0" row="0" column="1" />
<OTA otaAddress="257" position="1" row="1" column="1" />
</graspcontroller>
</host>
<host address="node01" port="7400" serviceInterface="192.168.1.131">
<graspcontroller address="tc2A3" port="915" hostInterface="192.168.1.253">
<OTA otaAddress="2" position="0" row="2" column="0" />
<OTA otaAddress="3" position="1" row="3" column="0" />
</graspcontroller>
<graspcontroller address="tc2A4" port="915" hostInterface="192.168.1.254" >
<OTA otaAddress="258" position="0" row="2" column="1" />
<OTA otaAddress="259" position="1" row="3" column="1" />
</graspcontroller>
</host>
</HostMap>
We have hosts holding controllers holding OTAs. Do you make a seperate ds describing otas, then make one of controllers that hold otas, then make one of hosts that hold controllers, and finally the hostmap that holds hosts and a service? How do you specify the attributes? How do you link the seperate ds's together?
<HostMap>
<service address="frost.tuc.noao.edu" port="7400"/>
<host address="node00" port="7400" serviceInterface="192.168.1.130">
<graspcontroller address="tc2A1" port="915" hostInterface="192.168.1.251">
<OTA otaAddress="0" position="0" row="0" column="0" />
<OTA otaAddress="1" position="1" row="1" column="0" />
</graspcontroller>
<graspcontroller address="tc2A2" port="915" hostInterface="192.168.1.252" >
<OTA otaAddress="256" position="0" row="0" column="1" />
<OTA otaAddress="257" position="1" row="1" column="1" />
</graspcontroller>
</host>
<host address="node01" port="7400" serviceInterface="192.168.1.131">
<graspcontroller address="tc2A3" port="915" hostInterface="192.168.1.253">
<OTA otaAddress="2" position="0" row="2" column="0" />
<OTA otaAddress="3" position="1" row="3" column="0" />
</graspcontroller>
<graspcontroller address="tc2A4" port="915" hostInterface="192.168.1.254" >
<OTA otaAddress="258" position="0" row="2" column="1" />
<OTA otaAddress="259" position="1" row="3" column="1" />
</graspcontroller>
</host>
</HostMap>
We have hosts holding controllers holding OTAs. Do you make a seperate ds describing otas, then make one of controllers that hold otas, then make one of hosts that hold controllers, and finally the hostmap that holds hosts and a service? How do you specify the attributes? How do you link the seperate ds's together?
Comment