<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
.MsoChpDefault
        {font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">Hi Nikolay,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">It should be relatively easy to get the XML out of the file if you use the LibTIFF library (<a href="http://www.remotesensing.org/libtiff/">http://www.remotesensing.org/libtiff/</a>).
 The following code snippet should do it:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">TIFF *tiff = TIFFOpen(“file-path-to-scn.scn”, “r8”);</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">if (0 != tiff) {</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp; char *image_desc = 0;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp; if (1 == TIFFGetField(tiff, TIFFTAG_IMAGEDESCRIPTION, &amp;image_desc) {</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp;&nbsp;&nbsp; // image_desc now points to a buffer containing the XML</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp; }</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">}</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">Don’t forget to close the TIFF when finished.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">Cheers</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">John</span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">&nbsp;</p>
</div>
</div>
</div>
</div>
</div>
<hr>
<div style="background-color:#FFFFFF; border:1px dotted #003333; padding:.8em">
<div align="center"><a href="http://www.ffei.co.uk"><img alt="FFEI Limited" src="http://www.ffei.co.uk/wp-content/uploads/2013/04/FFEI_Logo_BoxOnly_72dpi-Web-optimised-76x75.jpg" height="75" alt="FFEI_Logo_BoxOnly[1].png" border="0"></a>
<a href="http://www.ffei.co.uk/ffei-wins-third-queens-award-for-innovation/"><img alt="FFEI wins 3rd Queens award for innovation" src="http://www.ffei.co.uk/wp-content/uploads/2013/10/QA_small.png" height="75" border="0"></a></div>
<span style="font-size:12pt; font-family:'Cambria','times new roman','garamond',serif; color:#800080"><strong>CONFIDENTIALITY AND DISCLAIMER NOTICE</strong></span><br>
<p style="">This message and any attachment is confidential and is protected by copyright. If you are not the intended recipient, please email the sender and delete this message and any attachment from your system.
<br>
<br>
Dissemination and or copying of this email is prohibited if you are not the intended recipient. We believe, but do not warrant, that this email and any attachments are virus free. You should take full responsibility for virus checking.<br>
<br>
No responsibility is accepted by FFEI Ltd for personal emails or emails unconnected with FFEI Limited's business.
<br>
<br>
FFEI Limited is a limited company registered in England and Wales (Registered Number: 3244452).
</p>
<div align="center"><a href="http://www.linkedin.com/company/ffei" target="_blank"><img src="http://www.ffei.co.uk/wp-content/uploads/2013/10/linkedin_Small.png" border="0" alt="Join us on Linked In"></a>
<a href="https://twitter.com/FFEI_ltd" target="_blank"><img src="http://www.ffei.co.uk/wp-content/uploads/2013/10/twitter_small.png" height="30" border="0" alt="Follow @FFEI_ltd"></a>
<a href="http://www.youtube.com/user/FFEIPrintTechnology" target="_blank"><img src="http://www.ffei.co.uk/wp-content/uploads/2013/10/YouTube_small.png" height="30" border="0" alt="FFEI YouTube Channel"></a>
</div>
<div align="center"><span style="padding-top:10px; font-weight:bold; color:#000000; font-size:10pt; font-family:'Calibri',Arial,sans-serif">Registered Office: The Cube, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 7DF, England.
</div>
</span></div>
</body>
</html>