<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Alexandre,<div><br></div><div><div><blockquote type="cite"><div>I can add an "Instrument" element and add many "Objective" elements<br>but then I want to link them with their corresponding "Image" element.</div></blockquote>This is the best way to do it.<br><div><br></div><div>You would then link each Image to the correct Objective using an "ObjectiveSettings" element.</div><div>Your sample XML would look like</div><div><br></div><blockquote type="cite"><div><OME xmlns=...><br><Image ID="Image:0"><br> <AcquisitionDate>...</AcquisitionDate><br></div></blockquote> <Instrument ID="Instrument:1" ...></div><div> <ObjectiveSettings ID="Objective:0"/><br><blockquote type="cite"><div> <Pixels ...></Pixels><br></Image><br><Image ID="Image:2"><br> <AcquisitionDate>...</AcquisitionDate><br> </div></blockquote><div> <Instrument ID="Instrument:1" ...></div><div> <ObjectiveSettings ID="Objective:1"/><br><blockquote type="cite"></blockquote></div><blockquote type="cite"><div> <Pixels ...></Pixels><br></Image><br><br><!-- here is what I want to add, <br> Need to link with above images --><br><Instrument ID=Instrument:1" ...><br> <Objective NominalMagnification="20"</div></blockquote><div> ID="Objective:0"</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"> </font>.../><br> <Objective NominalMagnification="5" </div></blockquote><div> ID="Objective:1" </div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"> </font>.../></div></blockquote><blockquote type="cite"><div></Instrument><br></OME><br></div></blockquote></div><br></div><div>Hope this helps,</div><div><br></div><div>Andrew</div><div><br></div><div>--</div><div>Andrew Patterson<br>Software Developer, Open Microscopy Environment<br>Wellcome Trust Centre for Gene Regulation and Expression<br>University of Dundee</div><div><br></div></body></html>