<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>&lt;OME xmlns=...&gt;<br>&lt;Image ID="Image:0"&gt;<br> &nbsp;&lt;AcquisitionDate&gt;...&lt;/AcquisitionDate&gt;<br></div></blockquote>&nbsp; &lt;Instrument ID="Instrument:1" ...&gt;</div><div>&nbsp;&nbsp;&lt;ObjectiveSettings ID="Objective:0"/&gt;<br><blockquote type="cite"><div> &nbsp;&lt;Pixels ...&gt;&lt;/Pixels&gt;<br>&lt;/Image&gt;<br>&lt;Image ID="Image:2"&gt;<br> &nbsp;&lt;AcquisitionDate&gt;...&lt;/AcquisitionDate&gt;<br> </div></blockquote><div>&nbsp; &lt;Instrument ID="Instrument:1" ...&gt;</div><div>&nbsp;&nbsp;&lt;ObjectiveSettings ID="Objective:1"/&gt;<br><blockquote type="cite"></blockquote></div><blockquote type="cite"><div>&nbsp;&lt;Pixels ...&gt;&lt;/Pixels&gt;<br>&lt;/Image&gt;<br><br>&lt;!-- here is what I want to add, <br> Need to link with above images --&gt;<br>&lt;Instrument ID=Instrument:1" ...&gt;<br> &nbsp;&lt;Objective NominalMagnification="20"</div></blockquote><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ID="Objective:0"</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>.../&gt;<br> &nbsp;&lt;Objective NominalMagnification="5"&nbsp;</div></blockquote><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ID="Objective:1"&nbsp;</div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font>.../&gt;</div></blockquote><blockquote type="cite"><div>&lt;/Instrument&gt;<br>&lt;/OME&gt;<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>