<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
h4
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;
        font-weight:bold;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle23
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
@list l0
        {mso-list-id:1182277856;
        mso-list-type:hybrid;
        mso-list-template-ids:-1335824924 67698693 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:?;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
@list l1
        {mso-list-id:1663654880;
        mso-list-type:hybrid;
        mso-list-template-ids:-313769064 67698693 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:?;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Wingdings;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Kenneth,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks to your precisions, all the code is
correct. </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I have a specific question. The new temporary
WebLayout appears in a new window. Is it possible to update only the current
viewer with this new temporary WebLayout? I don’t find specific command
in Maestro for it. </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Invoke URL command:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-> Extra properties</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Target : </span></font></p>
<ul style='margin-top:0cm' type=square>
<li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo2'><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>NewWindow
= WebLayout in a new window </span></font></li>
<li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo2'><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>SpecifiedFrame
= WebLayout in a new window (I have used the “id” of the Viewer
Frame)</span></font></li>
<li class=MsoNormal style='color:navy;mso-list:l1 level1 lfo2'><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial'>TaskPane
= WebLayout in the Taskpane </span></font></li>
</ul>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Arnaud De Groof</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The new code:</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:red'><?php</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Vital includes.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>include</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"../../mapviewerphp/constants.php"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>include</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"../../mapviewerphp/common.php"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$args</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#660000'>$_SERVER</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>[</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>'REQUEST_METHOD'</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>]</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>==</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"POST"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>?</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$_POST</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>:</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$_GET</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$args</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>[</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>'SESSION'</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>];</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>$mapName = $args['MAPNAME'];</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$layerName1</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>'YYY'</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$rlLayerResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Library://</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'>XXX</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>/</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$layerName1</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>.LayerDefinition"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>InitializeWebTier();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$userInfo</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgUserInformation(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$siteConnection</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgSiteConnection();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$siteConnection</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->Open(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$userInfo</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$resourceService</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$siteConnection</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->CreateService(MgServiceType::ResourceService);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Read the MapDefinition into an XML DOM document object.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$md</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
Library://XXX/$mapName.MapDefinition</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'> "</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'>// </span></font><b><font size=2 color="#7ca5d5" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#7CA5D5;font-weight:bold'>TODO</span></font></b><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:gray'> Constant!</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$md</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdReader</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$resourceService</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetResourceContent(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdReader</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->ToString();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdDomDoc</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMDocument::loadXML(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Add a new MapLayer</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$targetNode</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->getElementsByTagName(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"MapLayer"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)->item(</span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$targetNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->parentNode->insertBefore(</span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"MapLayer"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>),</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$targetNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Name"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$layerName1</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ResourceId"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$rlLayerResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Selectable"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"false"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ShowInLegend"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"false"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"LegendLabel"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ExpandInLegend"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"false"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Visible"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"true"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$newNode</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->appendChild(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->createElement(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Group"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Save the updated MapDefinition</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$updatedXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$mdDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->saveXML();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$byteSource</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgByteSource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$updatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>strlen(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$updatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Create the temporary MapDefinition</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionMapName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$mdResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetName();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionMapDefinition</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Session:</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>//</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionMapName</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>.MapDefinition"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionMapDefinition</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Write the updated MapDefinition</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$resourceService</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetResource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$byteSource</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetReader(),</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>null);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>//Test the updated MapDefinition</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$md1</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"Session:</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>//X.MapDefinition"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdResourceId2</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$md1</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdReader2</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$resourceService</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetResourceContent(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdResourceId2</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdXml2</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdReader2</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->ToString();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mdDomDoc2</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMDocument::loadXML(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdXml2</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Read the WebLayout into an XML DOM document object.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wl</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>Library://XXX/XXX.WebLayout</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// </span></font><b><font size=2 color="#7ca5d5" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#7CA5D5;font-weight:
bold'>TODO</span></font></b><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:gray'> Constant!</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wl</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlReader</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$resourceService</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetResourceContent(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlReader</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->ToString();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlDomDoc</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>DOMDocument::loadXML(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Now, update the MapDefinition.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mapdef</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->getElementsByTagName(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"ResourceId"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>)->item(</span></font><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:red'>0</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$mapdef</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->nodeValue</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$md1</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Prepare the updated XML to be written out to the session.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlupdatedXml</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$wlDomDoc</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->saveXML();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlbyteSource</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgByteSource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlupdatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>strlen(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlupdatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>));</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Create a temporary WebLayout</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlsessionMapName</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$wlResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetName();</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlsessionWebLayout</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"Session:</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>//</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlsessionMapName</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>.WebLayout"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlsessionResourceId</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:blue'>new</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>MgResourceIdentifier(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlsessionWebLayout</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Write the updated WebLayout to the session.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$resourceService</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->SetResource(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlsessionResourceId</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$wlbyteSource</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>->GetReader(),</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>null);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Redirect to the Ajax
viewer.</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$redirectTo</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#008200'>"mapguide/mapviewerajax/?SESSION=</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$sessionId</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>&WEBLAYOUT=</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#660000'>$wlsessionWebLayout</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$host</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$_SERVER</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>[</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>"HTTP_HOST"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>];</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$url</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"http://</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$host</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>/</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:#660000'>$redirectTo</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'>//Test</span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$f</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>'test.txt'</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#660000'>$handle</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>=</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>fopen(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$f</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"w"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>fwrite(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$handle</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>,</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'> </span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:#008200'>"test1:<"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$mdXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>">\r\ntest 2 :<"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$updatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>">\r\ntest 3 :<"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>">\r\ntest 4 :<"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$wlupdatedXml</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>">\r\ntest 5 :<"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$url</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>.</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>">"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>fclose(</span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$handle</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=gray face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:gray'>// Redirect!</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>header(</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#008200'>"Location: </span></font><font size=2 color="#660000" face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:#660000'>$url</span></font><font size=2 color="#008200" face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:#008200'>"</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>);</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New";color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=blue face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:blue'>exit</span></font><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'>;</span></font><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";
color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:red'>?></span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Kenneth Skovhede, GEOGRAF A/S<br>
<b><span style='font-weight:bold'>Sent:</span></b> dimanche 28 décembre 2008 12:34<br>
<b><span style='font-weight:bold'>To:</span></b> MapGuide Users Mail List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [mapguide-users]
create a temporary !Mapdefinition and add a layer</span></font><font color=black><span style='color:windowtext'></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'>You must also make a
temporary WebLayout. <br>
This WebLayout must then point to the temporary MapDefinition.<br>
<br>
In one of the last lines, you redirect to the temporary WebLayout.<br>
If that temporary WebLayout points to the temporary MapDefinition,<br>
all should be good. (Assuming layer is visible, in range, on top, etc.).</span></font></p>
<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Regards, Kenneth Skovhede, GEOGRAF A/S</span></font></pre>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
</span></font><span>Arnaud De Groof skrev: </span></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><!--[if gte mso 9]><xml>
<u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u3:shapelayout u4:ext="edit">
<u3:idmap u4:ext="edit" data="1"/>
</u3:shapelayout>
</xml><![endif]-->Hi,</span></font><span></span></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font><span></span></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I have found my error. In fact, I used the
command “SetRessource” with a WebLayout in place of a
MapDefinition. Now the script seems ok.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>How to load the WebLayout with the new
MapDefinition (with the new layer) and not the MapDefinition coming from the
library (without the new layer)?</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>New code:</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'><?php</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>include
"../../mapviewerphp/constants.php";</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>include
"../../mapviewerphp/common.php";</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>//
Initialize</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
MgInitializeWebTier($webconfigFilePath);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$args = ($_SERVER['REQUEST_METHOD'] == "POST") ? $_POST : $_GET;</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$sessionId = $args['SESSION'];</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mapName = $args['MAPNAME'];</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$layerName1 = 'YYY';</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$userInfo = new MgUserInformation($sessionId);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$siteConnection = new MgSiteConnection();</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$siteConnection->Open($userInfo);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$resourceService = $siteConnection->CreateService(MgServiceType::ResourceService);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$wl = "Library://XXX/XXX.WebLayout"; // TODO Constant!</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>// Build a
string pointing to the new layer in the Session</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$rlLayerResourceId = "Session:$sessionId//$layerName1.LayerDefinition";</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>// Read the
XML of the Library Map Definition</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$md ="Library://XXX/$mapName.MapDefinition";</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdResourceId = new MgResourceIdentifier($md); </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdReader = $resourceService->GetResourceContent($mdResourceId);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdXml = $mdReader->ToString();</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdDomDoc = DOMDocument::loadXML($mdXml); </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>// Insert
the layer in the MapDefinition</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$targetNode =
$mdDomDoc->getElementsByTagName("MapLayer")->item(0);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode = $targetNode->parentNode->insertBefore(new
DOMElement("MapLayer"), $targetNode); </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode->appendChild($mdDomDoc->createElement("Name",
$layerName1));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode->appendChild($mdDomDoc->createElement("ResourceId",
$rlLayerResourceId));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode->appendChild($mdDomDoc->createElement("Selectable",
"false"));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode->appendChild($mdDomDoc->createElement("ShowInLegend",
"false"));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode->appendChild($mdDomDoc->createElement("LegendLabel"));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode->appendChild($mdDomDoc->createElement("ExpandInLegend",
"false"));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode->appendChild($mdDomDoc->createElement("Visible",
"true"));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$newNode->appendChild($mdDomDoc->createElement("Group"));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>// Write
the XML out to form the Session MapDefinition</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$updatedXml = $mdDomDoc->saveXML();</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$byteSource = new MgByteSource($updatedXml, strlen($updatedXml));</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>// Create a
new MapDefinition (session repository).</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$sessionMapName = $mdResourceId->GetName();</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$sessionMapDefinition =
"Session:$sessionId//$sessionMapName.MapDefinition";</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$sessionResourceId = new MgResourceIdentifier($sessionMapDefinition);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>// Write the
updated MapDefinition</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$resourceService->SetResource($sessionResourceId,
$byteSource->GetReader(), null);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>// Test the
new MapDefinition</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdtest = "Session:$sessionId///$mapName.MapDefinition";</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdResourceIdtest = new MgResourceIdentifier($mdtest);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdReadertest = $resourceService->GetResourceContent($mdResourceIdtest);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdXmltest = $mdReader2->ToString();</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$mdDomDoctest = DOMDocument::loadXML($mdXmltest);</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>// Redirect
to the Ajax
viewer pointing at the map at the desired coordinates.</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$redirectTo =
"mapguide/mapviewerajax/?WEBLAYOUT=$sessionWebLayout&SESSION=$sessionId";</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$host = $_SERVER["HTTP_HOST"];</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
$url = <a href="http://$host/$redirectTo">"http://$host/$redirectTo"</a>;</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'> </span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>//
Redirect!</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
header("Location: $url");</span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New";color:windowtext'>
exit;</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Arnaud De Groof</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> <a href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b><span style='font-weight:bold'>On Behalf Of </span></b>Kenneth Skovhede,
GEOGRAF A/S<br>
<b><span style='font-weight:bold'>Sent:</span></b> mardi 23 décembre 2008 8:15<br>
<b><span style='font-weight:bold'>To:</span></b> MapGuide Users Mail List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [mapguide-users]
create a temporary !Mapdefinition and add a layer</span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'>The previous error you
had indicated that the xml was invalid.<br>
<br>
This is likely because you are not sending the entire xml document to the
server.<br>
Perhaps someone with better PHP skills can help you out.</span></font></p>
<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>Regards, Kenneth Skovhede, GEOGRAF A/S</span></font></pre>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span style='font-size:12.0pt'><br>
<br>
Arnaud De Groof skrev: </span></font></p>
<pre><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'><!--[if gte mso 9]><xml>
<u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u3:shapelayout u4:ext="edit">
<u3:idmap u4:ext="edit" data="1"/>
</u3:shapelayout>
</xml><![endif]-->I have changed the line: “</span></font>$byteSource = new MgByteSource($updatedXml, strlen($updatedXml));” <font color=navy face=Arial><span style='font-family:Arial;color:navy'>by “</span></font>$byteSource = new MgByteSource($updatedXml, mb_strlen($updatedXml));”<font color=navy face=Arial><span style='font-family:Arial;color:navy'> without success.</span></font></pre>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The xml code coming from the initial
MapDefinition was carried out thanks to Maestro. I join here the result of the
$updatedXml:</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><?xml version="1.0"
encoding="utf-8"?></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><MapDefinition xmlns:xsi=<a href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xmlns:xsd=<a href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a>
xsi:noNamespaceSchemaLocation="MapDefinition-1.0.0.xsd"></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> <Name>New Map</Name></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>
<CoordinateSystem>PROJCS["WGS 84 / UTM zone
48N",GEOGCS["WGS
84",DATUM["WGS_1984",SPHEROID["WGS
84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",105],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","32648"]]</CoordinateSystem></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><Extents></span></font><span></span></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
<MinX>608404.999984747</MinX></span></font><span></span></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>
<MaxX>641160.000015253</MaxX></span></font><span></span></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:navy'><MinY>1121406.87752137</MinY></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>
<MaxY>1142427.99990895</MaxY></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </Extents></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>
<BackgroundColor>ffffffff</BackgroundColor></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> <Metadata/></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>
<MapLayer><Name>YYY</Name><ResourceId>Session:92b640a0-ffff-ffff-8002-001aa0d22567_fr_7F0000010AFC0AFB0AFA//</span></font>
<font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>YYY.LayerDefinition</ResourceId><Selectable>false</Selectable><ShowInLegend>false</ShowInLegend><LegendLabel/><ExpandInLegend>false</ExpandInLegend><Visible>true</Visible><Group/></MapLayer><MapLayer></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> <Name>Station</Name></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>
<ResourceId>Library://XXX/Station.LayerDefinition</ResourceId></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> <…</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks for your help.</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards,</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Arnaud De Groof</span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> </span></font></p>
<pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre>
<p class=MsoNormal align=center style='text-align:center'><strong><b><font size=3 color=blue face=Tahoma><span style='font-size:12.0pt;font-family:Tahoma;
color:blue;font-weight:normal'><hr<!--[object_id=#spacebel.be#]--> size=2
width="100%" align=center> </span></font></b></strong></p>
<p class=MsoNormal><strong><b><font size=2 color=blue face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;color:blue'>E-MAIL DISCLAIMER</span></font></b></strong></p>
<p><font size=1 color=blue face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:blue'>The present message may contain confidential and/or legally
privileged information. If you are not the intended addressee and in case of a
transmission error, please notify the sender immediately and destroy this
E-mail. Disclosure, reproduction or distribution of this document and its
possible attachments is strictly forbidden.</span></font></p>
<p><font size=1 color=blue face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:blue'>SPACEBEL denies all liability for incomplete, improper,
inaccurate, intercepted, (partly) destroyed, lost and/or belated transmission
of the current information given that unencrypted electronic transmission
cannot currently be guaranteed to be secure or error free.<br>
Upon request or in conformity with formal, contractual agreements, an
originally signed hard copy will be sent to you to confirm the information
contained in this E-mail.</span></font></p>
<p><font size=1 color=blue face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:blue'>SPACEBEL denies all liability where E-mail is used for
private use.</span></font></p>
<p><font size=1 color=blue face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:blue'>SPACEBEL cannot be held responsible for possible viruses that
might corrupt this message and/or your computer system.</span></font></p>
<div class=MsoNormal align=center style='text-align:center'><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>
<hr size=2 align=center>
</span></font></div>
<pre wrap><font size=2 color=black face="Courier New"><span style='font-size:
10.0pt'> </span></font></pre><pre style='text-align:center'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre style='text-align:center'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre style='text-align:center'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>
<hr size=4 align=center>
</span></font></pre><pre style='text-align:center'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre style='text-align:center'><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>_______________________________________________</span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'>mapguide-users mailing list</span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a></span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'><a href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a></span></font></pre><pre><font size=2 color=black face="Courier New"><span style='font-size:10.0pt'> </span></font></pre></div>
</body>
</html>