Ok, here&#39;s the XML response from the server:<br><br><br>?xml version=&#39;1.0&#39; encoding=&quot;ISO-8859-1&quot; ?&gt;<br>&lt;wfs:FeatureCollection<br>   xmlns:ms=&quot;<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>&quot;<br>

   xmlns:gml=&quot;<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>&quot;<br>   xmlns:wfs=&quot;<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>&quot;<br>   xmlns:ogc=&quot;<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>&quot;<br>

   xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>   xsi:schemaLocation=&quot;<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a> <a href="http://localhost/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map&amp;amp;SERVICE=WFS&amp;amp;VERSION=1.1.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=regs_anu&amp;amp;OUTPUTFORMAT=text/xml">http://localhost/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map&amp;amp;SERVICE=WFS&amp;amp;VERSION=1.1.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=regs_anu&amp;amp;OUTPUTFORMAT=text/xml</a>; subtype=gml/3.1.1  <a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;&gt;<br>

      &lt;gml:boundedBy&gt;<br>          &lt;gml:Envelope srsName=&quot;EPSG:4326&quot;&gt;<br>              &lt;gml:lowerCorner&gt;-107.210132 21.041869&lt;/gml:lowerCorner&gt;<br>              &lt;gml:upperCorner&gt;-97.144224 29.880024&lt;/gml:upperCorner&gt;<br>

          &lt;/gml:Envelope&gt;<br>      &lt;/gml:boundedBy&gt;<br>    &lt;gml:featureMember&gt;<br>      &lt;ms:regs_anu gml:id=&quot;regs_anu.1&quot;&gt;<br>        &lt;gml:boundedBy&gt;<br>            &lt;gml:Envelope srsName=&quot;EPSG:4326&quot;&gt;<br>

                &lt;gml:lowerCorner&gt;-107.210132 21.041869&lt;/gml:lowerCorner&gt;<br>                &lt;gml:upperCorner&gt;-97.144224 29.880024&lt;/gml:upperCorner&gt;<br>            &lt;/gml:Envelope&gt;<br>        &lt;/gml:boundedBy&gt;<br>

        &lt;ms:msGeometry&gt;?xml version=&#39;1.0&#39; encoding=&quot;ISO-8859-1&quot; ?&gt;<br>&lt;wfs:FeatureCollection<br>   xmlns:ms=&quot;<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>&quot;<br>

   xmlns:gml=&quot;<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>&quot;<br>   xmlns:wfs=&quot;<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>&quot;<br>   xmlns:ogc=&quot;<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>&quot;<br>

   xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>   xsi:schemaLocation=&quot;<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a> <a href="http://localhost/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map&amp;amp;SERVICE=WFS&amp;amp;VERSION=1.1.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=regs_anu&amp;amp;OUTPUTFORMAT=text/xml">http://localhost/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map&amp;amp;SERVICE=WFS&amp;amp;VERSION=1.1.0&amp;amp;REQUEST=DescribeFeatureType&amp;amp;TYPENAME=regs_anu&amp;amp;OUTPUTFORMAT=text/xml</a>; subtype=gml/3.1.1  <a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;&gt;<br>

      &lt;gml:boundedBy&gt;<br>          &lt;gml:Envelope srsName=&quot;EPSG:4326&quot;&gt;<br>              &lt;gml:lowerCorner&gt;-107.210132 21.041869&lt;/gml:lowerCorner&gt;<br>              &lt;gml:upperCorner&gt;-97.144224 29.880024&lt;/gml:upperCorner&gt;<br>

          &lt;/gml:Envelope&gt;<br>      &lt;/gml:boundedBy&gt;<br>    &lt;gml:featureMember&gt;<br>      &lt;ms:regs_anu gml:id=&quot;regs_anu.1&quot;&gt;<br>        &lt;gml:boundedBy&gt;<br>            &lt;gml:Envelope srsName=&quot;EPSG:4326&quot;&gt;<br>

                &lt;gml:lowerCorner&gt;-107.210132 21.041869&lt;/gml:lowerCorner&gt;<br>                &lt;gml:upperCorner&gt;-97.144224 29.880024&lt;/gml:upperCorner&gt;<br>            &lt;/gml:Envelope&gt;<br>        &lt;/gml:boundedBy&gt;<br>

        &lt;ms:msGeometry&gt;<br>          &lt;gml:Polygon srsName=&quot;EPSG:4326&quot;&gt;<br>            &lt;gml:exterior&gt;<br>              &lt;gml:LinearRing&gt;.....some coordinates<br><br>Thanks in advance<br>Pablo<br>

<br><div class="gmail_quote">On Wed, Nov 25, 2009 at 12:20 PM, Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">pablo lopez wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks Andreas, I&#39;ve just tried your suggestion and it didn&#39;t work. I&#39;m now taking a look at the gml returned by mapserver to see if I need to specify more parameters.<br>
On the other hand, I was looking at the highlight feature code in <a href="http://trac.openlayers.org/wiki/Highlighting" target="_blank">http://trac.openlayers.org/wiki/Highlighting</a>, and I wonder if there is a way to control the highlighting with mouse clicks instead of filters.<br>


Any suggestions on this?<br>
</blockquote>
<br></div>
This is only recommended if you have very few features. The prerequisite is to load the layer as vector layer, not from WMS.<br>
<br>
But back to the original problem. If you provide a sample XML that your server returns, it will be easier to see what is wrong.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Regards,<br>
Pablo<div class="im"><br>
<br>
On Wed, Nov 25, 2009 at 1:31 AM, Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a> &lt;mailto:<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>&gt;&gt; wrote:<br>


<br>
    Hi,<br>
<br>
    can you please try the following and report back if it works:<br>
<br>
<br>
    pablo lopez wrote:<br>
<br>
                   control = new OpenLayers.Control.GetFeature({<br>
                       protocol:<br>
        OpenLayers.Protocol.WFS.fromWMSLayer(layer),<br>
<br>
<br>
    Instead, use<br>
<br>
                  protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layer, {<br>
                      featurePrefix: &quot;feature&quot;<br>
                  }),<br>
<br>
    That&#39;s the only idea I have.<br>
<br>
    Regards,<br>
    Andreas.<br>
<br>
    --     Andreas Hocevar<br>
    OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
    Expert service straight from the developers.<br>
<br>
<br></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
  <br>
</div></blockquote>
<br>
<br>
-- <br><div><div></div><div class="h5">
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</div></div></blockquote></div><br>