<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'm not sure why the xml looks as you display, but it is URL encoded,
and using URL Decode should give you the <br>
correct xml. In .Net the call is System.Net.HttpUtility.UrlDecode, for
PHP you can just call "urldecode".<br>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Tony skrev:
<blockquote cite="mid:1220655233664-842308.post@n2.nabble.com"
 type="cite">
  <pre wrap="">yes  there is a limit but what i want is how to get the xml

 l_oSel.FromXml(l_sSelect); the xml i am getting is in raw format 

%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3CFeatureSet%3E%0A%3CLayer%20id%3D%223bd14d38-0000-1000-800c-0019d2caa8be%22%3E%0A%3CClass%20id%3D%22Default%3Assgg_DBO_SD_MAINS%22%3E%0A%3CID%3EBAAAAA%3D%3D%3C%2FID%3E%0A%3CID%

i am getting an exception when i try to do the l_oSel.FromXml . did anyone
came across this.
 
anyone any ideas.

thanks
Tony_mg


zspitzer wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">isn't there a limit in serverconfig on the number of features that can be
selected?

On Thu, Sep 4, 2008 at 6:02 PM, shreepad Ranadive
<a class="moz-txt-link-rfc2396E" href="mailto:shreepadr@valuecad.com">&lt;shreepadr@valuecad.com&gt;</a>wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">i also have same problem  any one worked on current selection ??

shreepad



Tony_mg wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">String l_sSession = GetParameters()["SESSION"];
String l_sSelect = Request .Form ["SEL"];

 MgUserInformation l_oCred = new MgUserInformation(l_sSession);
                    MgSiteConnection l_oSite = new MgSiteConnection();
                    l_oSite.Open(l_oCred);
                    ArrayList listEQ = null;
                    MgResourceService l_oResourceSrvc =

        </pre>
      </blockquote>
      <pre wrap="">(MgResourceService)l_oSite.CreateService(MgServiceType.ResourceService);
      </pre>
      <blockquote type="cite">
        <pre wrap="">                    MgFeatureService l_oFeatureSrvc =
(MgFeatureService)l_oSite.CreateService(MgServiceType.FeatureService);

                    MgMap l_oMap = new MgMap();
                    l_oMap.Open(l_oResourceSrvc, "General Public Map");
                    MgSelection l_oSel = new MgSelection(l_oMap);

                    l_oSel.FromXml(l_sSelect);
getting error at FromXML by the way i am passing more then 500
        </pre>
      </blockquote>
      <pre wrap="">selection
      </pre>
      <blockquote type="cite">
        <pre wrap="">                    MgReadOnlyLayerCollection l_cSelLayers =
l_oSel.GetLayers();
  MgFeatureReader featReader = null;
  for (int i = 0; i &lt; l_cSelLayers.GetCount(); i++)
  {
      MgLayer layer = l_cSelLayers.GetItem(i) as MgLayer;
      if ((layer != null) &amp;&amp; (layer.GetName() == "main"))
      {

          Response.Write("Layer found");
      }
  }

any ideas , its kinda urgent . please  help



        </pre>
      </blockquote>
      <pre wrap="">
-----
Shreepad Ranadive
Direcotor , Application Development
ValueCAD
444 Natoma St
Sanfrancisco,CA 94103
--
View this message in context:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/current-selection--does-not-work-tp19305385p19305409.html">http://www.nabble.com/current-selection--does-not-work-tp19305385p19305409.html</a>
Sent from the MapGuide Users mailing list archive at Nabble.com.

_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>

      </pre>
    </blockquote>
    <pre wrap="">

-- 
Zac Spitzer -
<a class="moz-txt-link-freetext" href="http://zacster.blogspot.com">http://zacster.blogspot.com</a> (My Blog)
+61 405 847 168

_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>