<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>It's generated by the Mapguide API</div>

<div> </div>

<div>-----------</div>

<div>Server:</div>

<div>-----------</div>

<div>
<div>                Dim FeatureResID As New MgResourceIdentifier(layer.FeatureSourceId)<br/>
                Dim ID_string As String = "FID= '" + fid + "' "<br/>
                <br/>
                queryoption.SetFilter(ID_string)<br/>
<br/>
                featureReader = featureService.SelectFeatures(FeatureResID, layer.GetFeatureClassName(), queryoption)</div>

<div>                featureReader = layer.SelectFeatures(queryoption)             <br/>
                selection.AddFeatures(layer, featureReader, 0)<br/>
               </div>

<div>                selection.Save(resourceService, mapname)<br/>
                featureReader.Close()<br/>
                <br/>
                PUBLIC_STR = selection.ToXml</div>

<div> </div>

<div>
<div>----------</div>

<div>Client:</div>
----------</div>
</div>

<div>
<div>                var selXML = '<%=PUBLIC_STR %>';           <br/>
                viewerFrame.mapFrame.SetSelectionXML(selXML);</div>

<div> </div>

<div>alert( selXML);</div>

<div>---------------------------------------------------------</div>

<div>--inside the alert--</div>

<div>----------------------------------------------------------</div>

<div>
<div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><?xml version="1.0" encoding="UTF-8"?></div>

<div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><FeatureSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FeatureSet-1.0.0.xsd"></div>

<div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><Layer id="1ae8c704-bd8d-11e4-800d-0050569026c7"> </div>

<div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><Class id="KingOra:ALKIS_02~ALK_DF_FLURSTUECK~GEOM">  </div>

<div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><ID>GUsCAAAAAAA=</ID> </div>

<div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"></Class> </Layer></div>

<div style="color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"></FeatureSet></div>
</div>
</div>

<div>---------------------------------------------------------</div>

<div>
<div> </div>

<div> </div>

<div> </div>

<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"> </div>
</div>
</div></div></body></html>