wfsaxton
12-01-2005, 09:29 PM
Supposed I have an element "bank" which contains "dimm" elements:
<bank>
<dimm label="J0"><size>1GB</size><brand>A</brand></dimm>
<dimm label="J1"><size>1GB</size><brand>B</brand></dimm>
</bank>
Now, I have a second element "systemboard" which I also want to contain the "dimm" information. I don't, however, want to replicate the above "dimm" elements.
The best example I can think of is this kludgy code:
<systemboard>
<dimm_pointer label="J0"/>
</systemboard>
I'm an XML noob so I'm figuring that has to be a better "standard" way of doing this kind of stuff. Any ideas?
I should note that this information is being stored in a database. The 'bank' and 'systemboard' elements will be in different fields.
<bank>
<dimm label="J0"><size>1GB</size><brand>A</brand></dimm>
<dimm label="J1"><size>1GB</size><brand>B</brand></dimm>
</bank>
Now, I have a second element "systemboard" which I also want to contain the "dimm" information. I don't, however, want to replicate the above "dimm" elements.
The best example I can think of is this kludgy code:
<systemboard>
<dimm_pointer label="J0"/>
</systemboard>
I'm an XML noob so I'm figuring that has to be a better "standard" way of doing this kind of stuff. Any ideas?
I should note that this information is being stored in a database. The 'bank' and 'systemboard' elements will be in different fields.