<div>Thanks Andreas and Toni for your help,</div>
<div> </div>
<div>In my case (rare case), the server page is in a server computer and it has to read a gml file that is in client computer. This applicattion only has to run in Internet Explorer. This is very risky in a normal applications, but in my case, it is for internal porpouse and I could add all the permissions I want in the client.</div>

<div> </div>
<div>Adding the web in Internet Explorer trusted sites, adding permissions to &quot;Initialize and generate scripts to ActiveX controls not marked as safe&quot; and loading the gml file like (gmlDoc = &quot;file:///c:/demo.gml&quot;): </div>

<div><font color="#0000ff" size="2"><font color="#0000ff" size="2">
<p>function</p></font></font><font size="2"> loadParams(gmlDoc){
<p></p>
<p></p>
<p></p></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">  if</font></font><font size="2"> (document.implementation &amp;&amp; document.implementation.createDocument){
<p>    xmlDoc = document.implementation.createDocument(</p></font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;&quot;</font></font><font size="2">, </font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;&quot;</font></font><font size="2">, </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">null</font></font><font size="2">);</font>
<p><font size="2">    xmlDoc.onload = readParams;</font></p>
<p>  } <font color="#0000ff" size="2"><font color="#0000ff" size="2">else</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">if</font></font><font size="2"> (window.ActiveXObject){</font></p>

<p>    xmlDoc = <font color="#0000ff" size="2"><font color="#0000ff" size="2">new</font></font><font size="2"> ActiveXObject(</font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;Microsoft.XMLDOM&quot;</font></font><font size="2">);</font></p>

<p>    xmlDoc.async = <font color="#0000ff" size="2"><font color="#0000ff" size="2">false</font></font><font size="2">;</font></p>
<p>    xmlDoc.onreadystatechange = <font color="#0000ff" size="2"><font color="#0000ff" size="2">function</font></font><font size="2"> () {</font></p>
<p><font color="#0000ff" size="2"><font color="#0000ff" size="2">      if</font></font><font size="2"> (xmlDoc.readyState == 4) readParams()</font></p>
<p>    };</p>
<p>  } <font color="#0000ff" size="2"><font color="#0000ff" size="2">else</font></font><font size="2">{</font></p>
<p>    alert(<font color="#a31515" size="2"><font color="#a31515" size="2">&#39;This script is not supported by your browser&#39;</font></font><font size="2">);</font></p>
<p><font color="#0000ff" size="2"><font color="#0000ff" size="2">    return</font></font><font size="2">;</font></p>
<p>  }</p>
<p>  xmlDoc.load(gmlDoc);</p>
<p>}</p>
<p>I know this is not a normal case, but although it is not the better solution, I could resolve my problem with permissions. </p>
<p>Thanks for your responses.</p>
<p>Best regards,</p>
<p>Gorka López</p>
<p> </p></div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">2009/2/25 toni hernández <span dir="ltr">&lt;<a href="mailto:tonidelacalle@gmail.com">tonidelacalle@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">hi,<br>the path to the file can be relative (./file or ../route_to_folder/file.gml) to the path or your html file or a http protocol (the whole route htp://yourserverdomain/route_to_file/file.gml)<br>
.<br><br><br>
<div class="gmail_quote">
<div class="Ih2E3d">2009/2/25 Gorka López Rivacoba <span dir="ltr">&lt;<a href="mailto:gorka.lopez.rivacoba@gmail.com" target="_blank">gorka.lopez.rivacoba@gmail.com</a>&gt;</span><br></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>Hello,</div>
<div>
<div></div>
<div class="Wj3C7c">
<div> </div>
<div>I have an application an I want to load an external GML file. When I load it from an internal file (like &quot;.\file.gml&quot;) it&#39;s ok, but when I load from an external file (like &quot;C:\file.gml&quot;) there is an error: in this line:</div>

<div> </div>
<div>C:\DesarrolloTINSA\mfbase\openlayers\lib\OpenLayers\Request\XMLHttpRequest.js:  <font color="#0000ff" size="2"><font color="#0000ff" size="2">this</font></font><font size="2">._object.open(sMethod, sUrl, bAsync, sUser, sPassword);</font></div>

<div> </div>
<div>I don&#39;t have any problem with permissions, because it is for internal porpouse. Is there any solution to this problem?</div>
<div> </div>
<div>Thanks. Best regards,</div>
<div> </div><font color="#888888">
<div>Gorka López</div></font><br></div></div>_______________________________________________<br>Dev mailing list<br><a href="mailto:Dev@openlayers.org" target="_blank">Dev@openlayers.org</a><br><a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
<br></blockquote></div><br></blockquote></div><br>